From 2518807c1e1ac47384a651fd7214a475707ebd1b Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Thu, 6 Oct 2022 15:31:21 +0200 Subject: [PATCH] run matchrunner tests in CI --- .github/workflows/rust-tests.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/rust-tests.yml diff --git a/.github/workflows/rust-tests.yml b/.github/workflows/rust-tests.yml new file mode 100644 index 0000000..ab3a7eb --- /dev/null +++ b/.github/workflows/rust-tests.yml @@ -0,0 +1,31 @@ +name: Run rust tests + +on: [push] + +jobs: + test-rust: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Update local toolchain + run: | + rustup update + rustup component add clippy + rustup install nightly + + - name: Toolchain info + run: | + cargo --version --verbose + rustc --version + cargo clippy --version + + - name: Setup tests + run: | + docker pull python:3.10-slim-buster + + - name: Test + run: | + cd planetwars-matchrunner + cargo check + cargo test --all \ No newline at end of file