aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/lint.yml
blob: d63f6f203b9d95c4f3052811392ee00f6f76fdaf (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: Tests and linters
on:
  push:
    branches:
      - main
  pull_request: {}
jobs:
  lint:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        emacs_version: [27, 28, 29, 30]
    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 integration lint lint-changelog"