aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/lint.yml
blob: 0c8e88a24dfaccf13604ec14a46a67c8e16e01df (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
on:
  push:
    branches:
      - main
  pull_request: {}
jobs:
  lint:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        emacs_version: [27, 28, 29]
    steps:
      - name: Checkout
        uses: actions/checkout@v4
        with:
          ref: ${{ github.event.pull_request.head.sha }}
          # No shallow clone, we want to be able to compare PR branch
          # to main.
          fetch-depth: 0
      - name: Run linters
        env:
          VERSION: ${{ matrix.emacs_version }}
        run: >-
          make docker CMD="make unit lint lint-changelog"