42 lines
No EOL
937 B
YAML
42 lines
No EOL
937 B
YAML
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: Cargo 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: Test
|
|
run: |
|
|
cd planetwars-matchrunner
|
|
cargo check
|
|
cargo test |