From 7ac160a368ca4572a8153ad3169277625db069cd Mon Sep 17 00:00:00 2001 From: DarkSky <25152247+darkskygit@users.noreply.github.com> Date: Mon, 8 Aug 2022 00:04:15 +0800 Subject: [PATCH] Update check.yml --- .github/workflows/check.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index e1a982e4f1..5359258440 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -2,9 +2,13 @@ name: standard check on: push: - branches: [master] + branches: [develop] pull_request: - branches: [master] + branches: [develop] + +concurrency: + group: ${{ github.workflow }}-${{ github.event.number || github.ref }} + cancel-in-progress: true jobs: main: @@ -12,8 +16,8 @@ jobs: uses: nrwl/ci/.github/workflows/nx-cloud-main.yml@v0.6 secrets: inherit with: - main-branch-name: master - number-of-agents: 3 + main-branch-name: develop + number-of-agents: 2 parallel-commands: | pnpm exec nx-cloud record -- pnpm exec nx format:check parallel-commands-on-agents: | @@ -23,6 +27,5 @@ jobs: agents: name: Nx Cloud - Agents uses: nrwl/ci/.github/workflows/nx-cloud-agents.yml@v0.6 - secrets: inherit with: - number-of-agents: 3 + number-of-agents: 2