ci: add commitlint to pr actions

This commit is contained in:
janniks
2023-01-09 17:57:19 +01:00
committed by janniks
parent 1db1adc5e9
commit e4077fb45f

View File

@@ -11,13 +11,22 @@ jobs:
uses: ./.github/workflows/pre-run.yml
secrets: inherit
commitlint:
runs-on: ubuntu-latest
needs: pre-run
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v5
tests:
needs: pre-run
uses: ./.github/workflows/tests.yml
publish-pr:
runs-on: ubuntu-latest
needs: [pre-run, tests]
needs: [pre-run, commitlint, tests]
if: needs.pre-run.outputs.is-not-fork == 'true'
steps:
- uses: actions/checkout@v3