summaryrefslogtreecommitdiff
path: root/.github/workflows/lint.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/lint.yaml')
-rw-r--r--.github/workflows/lint.yaml37
1 files changed, 10 insertions, 27 deletions
diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml
index 550e406..aab9e34 100644
--- a/.github/workflows/lint.yaml
+++ b/.github/workflows/lint.yaml
@@ -4,39 +4,22 @@ on:
workflow_call:
workflow_dispatch:
-permissions:
- checks: write
-
jobs:
- cargo-check:
+ lint:
runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v3
-
- - uses: actions-rs/toolchain@v1
- with:
- profile: minimal
- toolchain: stable
- override: true
- - name: run cargo check
- uses: actions-rs/cargo@v1
- with:
- command: check
+ strategy:
+ matrix:
+ check: [teawiebot, clippy]
- clippy:
- runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- - uses: actions-rs/toolchain@v1
+ - name: setup nix & cachix
+ uses: ./.github/actions/setup-nix
with:
- profile: minimal
- toolchain: stable
- override: true
- components: clippy
+ cachix-token: ${{ secrets.CACHIX_AUTH_TOKEN }}
- - uses: actions-rs/clippy-check@v1
- with:
- token: ${{ secrets.GITHUB_TOKEN }}
- args: --all-features
+ - name: lint
+ run: |
+ nix build -L .#checks.x86_64-linux.${{ matrix.check }}