From 525550ab86a2c5b1e3c4e5cafb09910a79c67f16 Mon Sep 17 00:00:00 2001 From: Michael Jones Date: Sun, 26 May 2024 20:27:39 -0500 Subject: [PATCH] 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. --- .github/workflows/lint.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d733e7f..b41cc2a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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