aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/rust-tests.yml31
1 files changed, 31 insertions, 0 deletions
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