Always expect a RMIM/RMDA #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |