mirror of
https://github.com/alexgo-io/stacks.js.git
synced 2026-04-30 18:22:41 +08:00
ci: add commitlint to pr actions
This commit is contained in:
11
.github/workflows/pull-request.yml
vendored
11
.github/workflows/pull-request.yml
vendored
@@ -11,13 +11,22 @@ jobs:
|
|||||||
uses: ./.github/workflows/pre-run.yml
|
uses: ./.github/workflows/pre-run.yml
|
||||||
secrets: inherit
|
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:
|
tests:
|
||||||
needs: pre-run
|
needs: pre-run
|
||||||
uses: ./.github/workflows/tests.yml
|
uses: ./.github/workflows/tests.yml
|
||||||
|
|
||||||
publish-pr:
|
publish-pr:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [pre-run, tests]
|
needs: [pre-run, commitlint, tests]
|
||||||
if: needs.pre-run.outputs.is-not-fork == 'true'
|
if: needs.pre-run.outputs.is-not-fork == 'true'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|||||||
Reference in New Issue
Block a user