run matchrunner tests in CI

This commit is contained in:
Ilion Beyst 2022-10-06 15:31:21 +02:00
parent 9825d2c49e
commit 2518807c1e

31
.github/workflows/rust-tests.yml vendored Normal file
View file

@ -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