ci: move web3 commit lint to parallel check (#21414)
This commit is contained in:
parent
3c2276fd09
commit
c68a11f715
|
@ -19,18 +19,16 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- run: echo "Done"
|
- run: echo "Done"
|
||||||
|
|
||||||
check-web3:
|
web3-commit-lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
# Set to true in order to avoid cancelling other workflow jobs.
|
||||||
|
# Mergify will still require web3-commit-lint for automerge
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
working-directory: web3.js
|
working-directory: web3.js
|
||||||
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
node: [ '12', '14', '16' ]
|
|
||||||
|
|
||||||
name: Node ${{ matrix.node }}
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
|
@ -48,6 +46,28 @@ jobs:
|
||||||
run: bash commitlint.sh
|
run: bash commitlint.sh
|
||||||
env:
|
env:
|
||||||
COMMIT_RANGE: ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}
|
COMMIT_RANGE: ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}
|
||||||
|
|
||||||
|
check-web3:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: web3.js
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
node: [ '12', '14', '16' ]
|
||||||
|
|
||||||
|
name: Node ${{ matrix.node }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node }}
|
||||||
|
cache: 'npm'
|
||||||
|
cache-dependency-path: web3.js/package-lock.json
|
||||||
|
- run: npm i -g npm@7
|
||||||
|
- run: npm ci
|
||||||
- run: npm run lint
|
- run: npm run lint
|
||||||
- run: |
|
- run: |
|
||||||
npm run build
|
npm run build
|
||||||
|
|
|
@ -40,8 +40,10 @@ pull_request_rules:
|
||||||
- status-success=check-explorer
|
- status-success=check-explorer
|
||||||
- -files~=^explorer/
|
- -files~=^explorer/
|
||||||
- or:
|
- or:
|
||||||
# only require web3 checks if web3.js files changed
|
- and:
|
||||||
- status-success=all-web3-checks
|
- status-success=all-web3-checks
|
||||||
|
- status-success=web3-commit-lint
|
||||||
|
# only require web3 checks if web3.js files changed
|
||||||
- -files~=^web3.js/
|
- -files~=^web3.js/
|
||||||
actions:
|
actions:
|
||||||
merge:
|
merge:
|
||||||
|
|
Loading…
Reference in New Issue