diff options
author | Nadrieril Feneanar | 2020-03-18 16:01:54 +0000 |
---|---|---|
committer | GitHub | 2020-03-18 16:01:54 +0000 |
commit | 8ab1834a5aef209347f5d11f98a8321fcfd4a5f6 (patch) | |
tree | aae2a9c07e99ffb9724e3bb61189dfbd10610444 /.github/workflows/tests.yml | |
parent | f90f00c38861a49eba950a59424be8796f266524 (diff) | |
parent | 9538d9c2b13ea24d3f9a83946f65ac62693ae9b0 (diff) |
Merge pull request #149 from Nadrieril/ci_matrix
Setup CI to test with various toolchains
Diffstat (limited to '')
-rw-r--r-- | .github/workflows/tests.yml | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..b257115 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,58 @@ +name: Test suite + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + test_release: + name: Run tests (release) + runs-on: ubuntu-latest + strategy: + matrix: + rust: + - stable + steps: + - name: Checkout branch + uses: actions/checkout@master + with: + submodules: true + - name: Setup Rust toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: ${{ matrix.rust }} + override: true + - name: Run tests + uses: actions-rs/cargo@v1 + with: + command: test + args: --release + + tests_debug: + name: Run tests + runs-on: ubuntu-latest + strategy: + matrix: + rust: + - beta + - nightly + - 1.42.0 # Minimum supported version + steps: + - name: Checkout branch + uses: actions/checkout@master + with: + submodules: true + - name: Setup Rust toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: ${{ matrix.rust }} + override: true + - name: Run tests + uses: actions-rs/cargo@v1 + with: + command: test + |