run matchrunner tests in CI
This commit is contained in:
parent
9825d2c49e
commit
2518807c1e
1 changed files with 31 additions and 0 deletions
31
.github/workflows/rust-tests.yml
vendored
Normal file
31
.github/workflows/rust-tests.yml
vendored
Normal 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
|
Loading…
Reference in a new issue