summaryrefslogtreecommitdiff
path: root/.github/workflows/lint.yaml
blob: aab9e34532fb96f04b621c489baf83c93db3204c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: lint project

on:
  workflow_call:
  workflow_dispatch:

jobs:
  lint:
    runs-on: ubuntu-latest

    strategy:
      matrix:
        check: [teawiebot, clippy]

    steps:
      - uses: actions/checkout@v3

      - name: setup nix & cachix
        uses: ./.github/actions/setup-nix
        with:
          cachix-token: ${{ secrets.CACHIX_AUTH_TOKEN }}

      - name: lint
        run: |
          nix build -L .#checks.x86_64-linux.${{ matrix.check }}