From 9538d9c2b13ea24d3f9a83946f65ac62693ae9b0 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Wed, 18 Mar 2020 15:55:19 +0000 Subject: Reorganize CI workflows --- .github/workflows/tests.yml | 58 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 .github/workflows/tests.yml (limited to '.github/workflows/tests.yml') 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 + -- cgit v1.2.3