diff options
| author | Mengsk <[email protected]> | 2022-12-29 12:14:52 +0100 |
|---|---|---|
| committer | Mengsk <[email protected]> | 2022-12-29 12:14:52 +0100 |
| commit | 8327090171246d0928195c49f4f15ce8b569a39b (patch) | |
| tree | 40b3f6d218e06bff8ec485ec1b8bfa897ce8467c /.github/workflows/pre-commit.yml | |
| parent | d584b07e2c8068a51c89421be2ddc116f4fc9d3e (diff) | |
| parent | 549bee94add9d8f1c346bfa0fa6b25481db3f191 (diff) | |
Merge branch 'master' of https://github.com/hathach/tinyusb into stm32_fsdev
Diffstat (limited to '.github/workflows/pre-commit.yml')
| -rw-r--r-- | .github/workflows/pre-commit.yml | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml new file mode 100644 index 000000000..8a1101ac0 --- /dev/null +++ b/.github/workflows/pre-commit.yml @@ -0,0 +1,46 @@ +name: pre-commit + +on: + push: + pull_request: + branches: [ master ] + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +jobs: + pre-commit: + runs-on: ubuntu-latest + steps: + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' + + - name: Setup Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.0' + + - name: Checkout TinyUSB + uses: actions/checkout@v3 + + - name: Run codespell + uses: codespell-project/actions-codespell@master + + - name: Run Unit Tests + run: | + # Install Ceedling + gem install ceedling + cd test/unit-test + ceedling test:all + + - name: Build Fuzzer + run: | + fuzz_harness=$(ls -d test/fuzz/device/*/) + for h in $fuzz_harness + do + make -C $h get-deps + make -C $h all + done |
