Skip to content

ci: Complete CI workflow #17

ci: Complete CI workflow

ci: Complete CI workflow #17

Workflow file for this run

name: Compliance Checks
on:
pull_request:
jobs:
compliance-checks:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Install tox
run: pip install tox
- name: Run compliance checks with tox
env:
BASE_REF: ${{ github.base_ref }}
run: |
export ZEPHYR_BASE=$PWD
git fetch origin $BASE_REF
tox -c utils/ci/tox.ini -e compliance -- -c origin/$BASE_REF..
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: Download Checkstyle configuration
run: curl -LJO https://raw.githubusercontent.com/checkstyle/checkstyle/master/src/main/resources/google_checks.xml
- name: Run Checkstyle
run: |
curl -LJO https://github.com/checkstyle/checkstyle/releases/download/checkstyle-10.8.0/checkstyle-10.8.0-all.jar
java -jar checkstyle-10.8.0-all.jar -c google_checks.xml server/leshan/src/main/java/lwm2m
- name: Install Codespell
run: pip install codespell
- name: Run Codespell
run: codespell