Skip to content

ci: improve github workflows (#190) #2

ci: improve github workflows (#190)

ci: improve github workflows (#190) #2

Workflow file for this run

name: Lint
on:
push:
branches: ["master"]
paths-ignore:
- "**/README.md"
pull_request:
paths-ignore:
- "**/README.md"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
RUSTC_WRAPPER: sccache
SCCACHE_GHA_ENABLED: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Cache cargo registry & git sources
uses: actions/cache@v4
with:

Check failure on line 30 in .github/workflows/lint.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/lint.yml

Invalid workflow file

You have an error in your yaml syntax on line 30
path: |
~/.cargo/bin/
~/.cargo/registry/
~/.cargo/git/db/
key: ${{ runner.os }}-cargo-lint-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-lint-${{ hashFiles('**/Cargo.lock') }}
${{ runner.os }}-cargo-lint-
${{ runner.os }}-cargo-
- name: Run sccache
uses: mozilla-actions/[email protected]
- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.78.0
components: rustfmt, clippy
- name: Check format
run: cargo fmt --all -- --check
- name: Check clippy
run: cargo clippy --all-targets --all-features -- -D warnings