diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d778d26d05f..c1e91365895 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,9 +7,18 @@ concurrency: cancel-in-progress: true jobs: + lint_code: + name: 'Lint Code' + uses: ./.github/workflows/lint-code.yml + + lint_commits: + name: 'Lint Commits' + uses: ./.github/workflows/lint-commits.yml + # CI matrix - runs the job in lagom-template.yml with different configurations. Lagom: if: github.repository == 'LadybirdBrowser/ladybird' + needs: [lint_code, lint_commits] strategy: fail-fast: false diff --git a/.github/workflows/lint-code.yml b/.github/workflows/lint-code.yml index ca901dba922..964b320e87c 100644 --- a/.github/workflows/lint-code.yml +++ b/.github/workflows/lint-code.yml @@ -1,6 +1,7 @@ name: Lint Code -on: [ push, pull_request ] +# Used by ci.yml +on: [workflow_call] jobs: lint: diff --git a/.github/workflows/lint-commits.yml b/.github/workflows/lint-commits.yml index e27b511ccae..12e359ac298 100644 --- a/.github/workflows/lint-commits.yml +++ b/.github/workflows/lint-commits.yml @@ -1,6 +1,7 @@ name: Lint Commit Messages -on: [pull_request_target] +# Used by ci.yml +on: [workflow_call] # Make sure to update Meta/lint-commit.sh to match this script when adding new checks! # (… but don't accept overlong 'fixup!' commit descriptions.)