Skip to content

Commit

Permalink
Add testsuite build step to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Sh3Rm4n committed May 1, 2021
1 parent c8b0d84 commit 2ee8ed2
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,14 @@ jobs:
command: check
args: --features=stm32f303xc,stm32-usbd,rt,can,ld --lib --examples

check-tests:
name: Check Tests
build-testsuite:
name: Build Testsuite
runs-on: ubuntu-latest
strategy:
matrix:
test:
- rcc
mcu:
- stm32f303xc
- stm32f303xd
- stm32f3xx-hal/stm32f303xc
- stm32f3xx-hal/stm32f303xd
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
Expand All @@ -91,10 +89,9 @@ jobs:
target: thumbv7em-none-eabihf
override: true
profile: minimal
- uses: actions-rs/cargo@v1
with:
command: check
args: --features=ld,defmt,${{ matrix.mcu }} --test ${{ matrix.test }}
- name: Build tests
working-directory: testsuite
run: cargo test --no-run --features=${{ matrix.mcu }}

clippy:
name: Clippy
Expand Down

0 comments on commit 2ee8ed2

Please sign in to comment.