Update check.yml

This commit is contained in:
DarkSky
2022-08-08 00:04:15 +08:00
committed by GitHub
parent 9b9d007e0d
commit 7ac160a368

View File

@@ -2,9 +2,13 @@ name: standard check
on: on:
push: push:
branches: [master] branches: [develop]
pull_request: pull_request:
branches: [master] branches: [develop]
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true
jobs: jobs:
main: main:
@@ -12,8 +16,8 @@ jobs:
uses: nrwl/ci/.github/workflows/nx-cloud-main.yml@v0.6 uses: nrwl/ci/.github/workflows/nx-cloud-main.yml@v0.6
secrets: inherit secrets: inherit
with: with:
main-branch-name: master main-branch-name: develop
number-of-agents: 3 number-of-agents: 2
parallel-commands: | parallel-commands: |
pnpm exec nx-cloud record -- pnpm exec nx format:check pnpm exec nx-cloud record -- pnpm exec nx format:check
parallel-commands-on-agents: | parallel-commands-on-agents: |
@@ -23,6 +27,5 @@ jobs:
agents: agents:
name: Nx Cloud - Agents name: Nx Cloud - Agents
uses: nrwl/ci/.github/workflows/nx-cloud-agents.yml@v0.6 uses: nrwl/ci/.github/workflows/nx-cloud-agents.yml@v0.6
secrets: inherit
with: with:
number-of-agents: 3 number-of-agents: 2