From 29db677a9e88494cea5f93201f8ece63d51b050a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Adri=C3=A1n=20Arroyo=20Calle?= Date: Sat, 16 Jan 2021 19:10:50 +0100 Subject: [PATCH] GitHub Actions --- .github/workflows/test.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..a8392bd3 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,35 @@ +name: Test +on: [push, pull_request] + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-20.04, windows-2019, macos-11.0] + rust-version: [stable, beta] + steps: + - name: Checkout sources + uses: actions/checkout@v2 + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: ${{ matrix.rust-version }} + override: true + - name: Build + uses: actions-rs/cargo@v1 + with: + command: build + args: --verbose -- -D warnings + - name: Test + uses: actions-rs/cargo@v1 + with: + command: test + args: --verbose --all + - name: Num tests + uses: actions-rs/cargo@v1 + continue-on-error: true + with: + command: test + args: --verbose --all --no-default-features --features num -- 2.54.0