enabled filtering #202
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: Check | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
types: [ opened, reopened, ready_for_review, review_requested, synchronize ] | |
env: | |
CARGO_TERM_COLOR: always | |
SQLX_OFFLINE: true | |
jobs: | |
clippy_check_client: | |
runs-on: ubuntu-latest | |
env: | |
RUSTFLAGS: "-Dwarnings --cfg=client" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run Clippy | |
run: cargo clippy --all-targets --all-features --no-deps | |
clippy_check_engine: | |
runs-on: ubuntu-latest | |
env: | |
RUSTFLAGS: "-Dwarnings --cfg=engine" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run Clippy | |
run: cargo clippy --all-targets --all-features --no-deps | |
perseus_check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
# Cache Cargo binaries | |
- uses: actions/cache@v3 | |
id: cache | |
with: | |
path: | | |
~/.cargo/bin/ | |
# The cache should be OS-specific | |
key: ${{ runner.os }}-cargo-bins | |
# Only install the binaries if the cache doesn't have them | |
- name: Install Dependencies | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: | | |
cargo install perseus-cli | |
- name: perseus | |
run: | | |
perseus check -g --no-system-tools-cache --verbose |