Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ jobs:
#
uses: ./.github/workflows/reusable-context.yml

lint:
name: lint
uses: ./.github/workflows/reusable-lint.yml

check-docs:
name: Docs
needs: build-context
Expand Down Expand Up @@ -655,6 +659,7 @@ jobs:
timeout-minutes: 5
needs:
- build-context # Transitive dependency, needed to access `run-tests` value
- lint
- check-docs
- check-autoconf-regen
- check-generated-files
Expand Down
13 changes: 1 addition & 12 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,10 @@ on: [push, pull_request, workflow_dispatch]
permissions:
contents: read

env:
FORCE_COLOR: 1
RUFF_OUTPUT_FORMAT: github

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: j178/prek-action@0bb87d7f00b0c99306c8bcb8b8beba1eb581c037 # v1.1.1
uses: ./.github/workflows/reusable-lint.yml
23 changes: 23 additions & 0 deletions .github/workflows/reusable-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Reusable Lint

on:
workflow_call:
workflow_dispatch:

permissions:
contents: read

env:
FORCE_COLOR: 1
RUFF_OUTPUT_FORMAT: github

jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: j178/prek-action@0bb87d7f00b0c99306c8bcb8b8beba1eb581c037 # v1.1.1
Loading