From a0fb2a10b28fd42d3ba55b75f0551922255ddacc Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Fri, 10 Jul 2020 15:07:45 -0700 Subject: [PATCH] Add GitHub Actions for CI (#5) --- .github/workflows/CI.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/CI.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000..3fcc8b6 --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,35 @@ +name: CI +on: + pull_request: + push: + branches: + - master + +jobs: + test: + name: Test ${{ matrix.rust }} + strategy: + matrix: + rust: + - stable + - beta + - nightly + - 1.21.0 + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v1 + + - name: Install Rust (${{ matrix.rust }}) + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: ${{ matrix.rust }} + override: true + + - name: Test + uses: actions-rs/cargo@v1 + with: + command: test