Target specific config #127
This file contains hidden or 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: lint | |
| on: | |
| push: {} | |
| pull_request: | |
| types: [opened, synchronize, reopened, edited] | |
| schedule: | |
| # 8AM first day of the month in JAN and JUNE to keep workflow badges up-to-date | |
| - cron: "0 8 1 1,6 *" | |
| jobs: | |
| lint: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [macos-latest, ubuntu-24.04] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: arduino/setup-task@v2 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: Homebrew/actions/setup-homebrew@master | |
| - name: Install Rust nightly | |
| uses: dtolnay/rust-toolchain@nightly | |
| - name: Install Rust stable | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy | |
| - run: | | |
| brew install ast-grep | |
| brew install cargo-audit | |
| brew install cargo-udeps | |
| - name: Audit | |
| run: task audit --output group --output-group-error-only | |
| - name: Check for unused dependencies | |
| run: task unused-dependencies --output group --output-group-error-only | |
| env: | |
| RUSTUP_TOOLCHAIN: nightly | |
| - name: Lint | |
| run: task lint --output group --output-group-error-only | |
| goreleaser: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: arduino/setup-task@v2 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: Homebrew/actions/setup-homebrew@master | |
| - run: brew install goreleaser | |
| - name: Check goreleaser config | |
| run: goreleaser check | |
| spellcheck: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: arduino/setup-task@v2 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: Homebrew/actions/setup-homebrew@master | |
| - uses: dtolnay/rust-toolchain@stable | |
| - run: | | |
| brew install typos-cli | |
| - name: Spellcheck | |
| run: task spellcheck --output group --output-group-error-only |