You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
amethyst/.github/workflows/test.yml

40 lines
838 B
YAML

name: Run checks and tests
on:
workflow_dispatch:
push:
branches: [ main, development, feature/gh-actions ]
pull_request:
branches: [ main, development ]
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
if: ${{ !env.ACT }}
- name: Cache build data
if: ${{ !env.ACT }}
uses: actions/cache@v2
with:
path: |
target
~/.cargo/
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Fetch
run: cargo fetch
- name: Check
run: cargo check --all-features
- name: Lint
run: cargo clippy -- -D warnings
- name: Test
run : cargo test --all-features