Skip to content

Commit ca52642

Browse files
committed
Run tests also on CI
1 parent 2f292c5 commit ca52642

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/test.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
on:
2+
push:
3+
branches: [ staging, trying, master ]
4+
pull_request:
5+
6+
name: Test Suite
7+
8+
jobs:
9+
ci-linux:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
rust: [stable]
14+
15+
# The default target we're compiling on and for
16+
TARGET: [x86_64-unknown-linux-gnu, thumbv6m-none-eabi, thumbv7m-none-eabi]
17+
18+
include:
19+
- rust: 1.36.0 # Higher than the MSRV due to dependencies.
20+
TARGET: x86_64-unknown-linux-gnu
21+
22+
# Test nightly but don't fail
23+
- rust: nightly
24+
experimental: true
25+
TARGET: x86_64-unknown-linux-gnu
26+
27+
steps:
28+
- uses: actions/checkout@v2
29+
- uses: actions-rs/toolchain@v1
30+
with:
31+
profile: minimal
32+
toolchain: ${{ matrix.rust }}
33+
target: ${{ matrix.TARGET }}
34+
override: true
35+
- uses: actions-rs/cargo@v1
36+
with:
37+
command: test
38+
args: --target=${{ matrix.TARGET }}

0 commit comments

Comments
 (0)