From e470775b69848dcb76b85ee981933bd8986db8b8 Mon Sep 17 00:00:00 2001 From: Tom Parker-Shemilt Date: Sun, 8 Aug 2021 10:22:40 +0100 Subject: [PATCH] Add Github action to run tests --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 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..397a58e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +on: + push: + pull_request: + +name: Continuous integration + +jobs: + test: + name: Test suite + runs-on: ubuntu-latest + strategy: + matrix: + rust: + - stable + - beta + - nightly + steps: + - uses: actions/checkout@v2.3.4 + - name: Install capnproto + run: sudo apt-get install capnproto libcapnp-dev + - uses: actions-rs/toolchain@v1.0.7 + with: + profile: minimal + toolchain: ${{ matrix.rust }} + override: true + - uses: Swatinem/rust-cache@v1 + - name: Build and test + uses: actions-rs/cargo@v1.0.3 + with: + command: test \ No newline at end of file