Always run lint, regardless of branch (#1492)

Someone working on a branch in their own fork won't see the lint running
on their github-actions CI until they open a pull request.

It'd be much easier to ensure changes being worked on are going to pass
the linter if the linter runs before the last step of opening the PR.
This commit is contained in:
Michael Jones 2024-05-26 20:27:39 -05:00 committed by GitHub
parent 4e8524d9d7
commit 525550ab86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,7 +2,6 @@ name: Lint
on:
push:
branches: [ $default-branch ]
pull_request:
types: [ opened, reopened, synchronize ]
@ -12,14 +11,20 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: install dependencies
with:
fetch-depth: 0
- name: Install Dependencies
uses: ./.github/workflows/actions/ubuntu-build-deps
with:
SUDO: true
- name: install clang-format-15
- name: Install clang-format-15
run: sudo apt install -y clang-format-15
- name: configure
- name: Configure
run: ./configure
- name: lint
run: |
if which clang-format-15 2>&1 >/dev/null