add hint #76
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
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build_cache: | |
runs-on: ubuntu-latest | |
env: | |
RUSTC_FORCE_INCREMENTAL: 1 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install asdf & tools | |
uses: asdf-vm/actions/install@v3 | |
- name: build | |
run: cargo build | |
fmt: | |
runs-on: ubuntu-latest | |
needs: build_cache | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install asdf & tools | |
uses: asdf-vm/actions/install@v3 | |
- name: fmt | |
run: cargo fmt --all -- --check | |
clippy: | |
runs-on: ubuntu-latest | |
env: | |
RUSTC_FORCE_INCREMENTAL: 1 | |
needs: build_cache | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install asdf & tools | |
uses: asdf-vm/actions/install@v3 | |
- name: clippy | |
run: cargo clippy --all-targets --all-features -- -D warnings | |
test: | |
runs-on: ubuntu-latest | |
env: | |
RUSTC_FORCE_INCREMENTAL: 1 | |
needs: build_cache | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install asdf & tools | |
uses: asdf-vm/actions/install@v3 | |
- name: test | |
run: cargo test --all -- --nocapture |