From 1ea7c7140a6e0c80ec0737c71295eee8d730f0c9 Mon Sep 17 00:00:00 2001 From: Tom Harding Date: Thu, 15 Feb 2024 15:24:23 +0100 Subject: [PATCH] Run the tests in CI --- .github/workflows/test.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 00000000..65f111ac --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,23 @@ +name: test + +on: + push: + +jobs: + cargo-test: + name: run cargo test + runs-on: ubuntu-latest + env: + CARGO_NET_GIT_FETCH_WITH_CLI: "true" + RUSTFLAGS: "-D warnings" # fail on warnings + steps: + - uses: actions/checkout@v4 + + - name: install tools + run: | + rustup show + + - uses: Swatinem/rust-cache@v2 + + - name: run tests + run: cargo test