Merge pull request #11 from inomotech-foss/main #86
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 | |
| - uses: dtolnay/rust-toolchain@nightly | |
| with: | |
| components: clippy | |
| - run: | | |
| 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 | |
| - 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 |