From: Adrián Arroyo Calle Date: Sat, 16 Jan 2021 18:10:50 +0000 (+0100) Subject: GitHub Actions X-Git-Tag: v0.9.0~158^2~4 X-Git-Url: https://git.sagredo.dev/?a=commitdiff_plain;h=29db677a9e88494cea5f93201f8ece63d51b050a;p=scryer-prolog.git GitHub Actions --- 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