From 48cc7cab4db39814672ada5b1efcbdbe20e37308 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Xu=C3=A2n=20Nh=C3=A2n?= Date: Mon, 18 Sep 2023 02:51:26 +0700 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 227666eb..2e68b493 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,17 +7,15 @@ on: jobs: main: - name: Nx Cloud - Main Job - uses: nrwl/ci/.github/workflows/nx-cloud-main.yml@v0.13.0 - with: - number-of-agents: 3 - parallel-commands: | - npx nx-cloud record -- npx nx format:check - parallel-commands-on-agents: | - npx nx affected -t lint --parallel=3 & npx nx affected -t test --parallel=3 --configuration=ci & npx nx affected -t build --parallel=3 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - uses: nrwl/nx-set-shas@v3 + - run: npm ci -f - agents: - name: Nx Cloud - Agents - uses: nrwl/ci/.github/workflows/nx-cloud-agents.yml@v0.13.0 - with: - number-of-agents: 3 + - run: npx nx format:check + - run: npx nx affected -t lint --parallel=3 + - run: npx nx affected -t test --parallel=3 + - run: npx nx affected -t build --parallel=3