-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (41 loc) · 1.15 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
name: Test
on: [push, pull_request]
jobs:
fmt:
runs-on: ubuntu-20.04
timeout-minutes: 15
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2021-10-24
profile: minimal
components: rustfmt
override: true
- run: cargo fmt -- --check
clippy:
runs-on: ubuntu-20.04
timeout-minutes: 15
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
components: clippy
override: true
- uses: Swatinem/rust-cache@v1
- run: cargo clippy --locked --all-targets --features strict
test:
if: 'false' # Disable in CI since it requires a copy of the game files
runs-on: ubuntu-20.04
timeout-minutes: 15
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
override: true
- uses: Swatinem/rust-cache@v1
- run: cargo test --locked --no-run
- run: cargo test --locked