From c1284d8c634e78b612c7c9e8cb1b12653fb960a4 Mon Sep 17 00:00:00 2001 From: James Graham Date: Tue, 19 Jul 2022 12:20:42 +0100 Subject: [PATCH] Add gh action for running tooling tests --- .github/workflows/tools-tests.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/tools-tests.yml diff --git a/.github/workflows/tools-tests.yml b/.github/workflows/tools-tests.yml new file mode 100644 index 0000000..4b5615b --- /dev/null +++ b/.github/workflows/tools-tests.yml @@ -0,0 +1,29 @@ +name: tools-tests + +on: + push: + branches: + - main + pull_request: +jobs: + rust-tests: + runs-on: ubuntu-latest + steps: + - name: "Checkout" + uses: actions/checkout@v3 + - name: "Cache" + uses: actions/cache@v3 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + ./target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + - name: "Rust toolchain" + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + - name: "Test" + run: cargo test