Skip to content

Commit 724d4ae

Browse files
committed
feat: nx agent for IT tests
1 parent bc26278 commit 724d4ae

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/it-tests.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ jobs:
6969
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
7070
- uses: ./tools/github-actions/download-build-output
7171
- uses: ./tools/github-actions/setup
72+
- run: npx nx-cloud@latest start-ci-run -- --distribute-on="3 linux-medium-js" --stop-agents-after="test-int"
7273
- shell: bash
7374
run: |
7475
git config --global user.name "GitHub Actions"
@@ -109,7 +110,7 @@ jobs:
109110
shell: bash
110111
- name: Test
111112
id: it-tests
112-
run: yarn test-int --collectCoverage
113+
run: yarn test-int:affected --collectCoverage
113114
- name: Upload results to Codecov
114115
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
115116
with:

.github/workflows/main.yml

-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ jobs:
2727
# Check the integrity of yarn lock
2828
yarn_lock_check:
2929
runs-on: ubuntu-latest
30-
env:
31-
NX_SKIP_NX_CACHE: true
3230
steps:
3331
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3432
- uses: ./tools/github-actions/setup

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"test:affected": "yarn nx affected --target=test --parallel $(yarn get:cpus-number) --cacheDirectory=$(yarn get:current-dir)/.cache/jest",
2727
"test-e2e": "yarn nx run-many --target=test-e2e --parallel $(yarn get:cpus-number)",
2828
"test-int": "yarn nx run-many --target=test-int --parallel $(yarn get:cpus-number)",
29+
"test-int:affected": "yarn nx affected --target=test-int",
2930
"postinstall": "husky && yarn build:lint && yarn harmonize:version && yarn update-yarn-sdks",
3031
"update-yarn-sdks": "node -e \"'pnp' !== '$(yarn config get nodeLinker)' || process.exit(1)\" || yarn dlx @yarnpkg/sdks",
3132
"build:storybook": "yarn doc:generate:json && yarn ng run storybook:extract-style && build-storybook",

0 commit comments

Comments
 (0)