Skip to content

Commit f6441c6

Browse files
committed
chore: fix ci (remove parallel) and update agents config
1 parent 7818232 commit f6441c6

File tree

5 files changed

+27
-8
lines changed

5 files changed

+27
-8
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535

3636
# Connect your workspace on nx.app and uncomment this to enable task distribution.
3737
# The "--stop-agents-after" is optional, but allows idle agents to shut down once the "e2e" targets have been requested
38-
- run: pnpm exec nx-cloud start-ci-run --distribute-on=".nx/workflows/dynamic-changesets.yaml" --stop-agents-after="e2e-ci" --with-env-vars="ANDROID_SDK_VERSION,FLUTTER_VERSION,JDK_VERSION"
38+
- run: pnpm exec nx-cloud start-ci-run --distribute-on=".nx/workflows/distribution-config.yaml" --stop-agents-after="e2e-ci" --with-env-vars="ANDROID_SDK_VERSION,FLUTTER_VERSION,JDK_VERSION"
3939

4040
# This line is needed for nx affected to work when CI is running on a PR
4141
- run: git branch --track develop origin/develop || exit 0

.nx/workflows/agents.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
launch-templates:
22
linux-medium-js-java-flutter:
3-
resource-class: 'docker_linux_amd64/large'
3+
resource-class: 'docker_linux_amd64/medium+'
44
image: 'ubuntu22.04-node20.11-v10'
55
init-steps:
66
- name: Checkout
+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
distribute-on:
2+
small-changeset: 1 linux-medium-js-java-flutter, 1 linux-large-js, 1 linux-medium-js
3+
medium-changeset: 2 linux-medium-js-java-flutter, 2 linux-large-js, 3 linux-medium-js
4+
large-changeset: 3 linux-medium-js-java-flutter, 3 linux-large-js, 5 linux-medium-js
5+
6+
assignment-rules:
7+
- target: build
8+
runs-on:
9+
- linux-large-js
10+
11+
- target: e2e
12+
runs-on:
13+
- linux-medium-js-java-flutter
14+
15+
- target: test
16+
runs-on:
17+
- linux-medium-js
18+
19+
- target: lint
20+
runs-on:
21+
- linux-medium-js

.nx/workflows/dynamic-changesets.yaml

-4
This file was deleted.

nx.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@
111111
"plugin": "@nx/jest/plugin",
112112
"options": {
113113
"targetName": "e2e",
114-
"ciTargetName": "e2e-ci"
114+
"ciTargetName": "e2e-ci",
115+
"disableJestRuntime": false
115116
},
116117
"include": [
117118
"e2e/nx-flutter-e2e/**/*",
@@ -127,7 +128,8 @@
127128
"plugin": "@nx/jest/plugin",
128129
"options": {
129130
"targetName": "test",
130-
"ciTargetName": "test-ci"
131+
"ciTargetName": "test-ci",
132+
"disableJestRuntime": false
131133
},
132134
"include": [
133135
"packages/common/**/*",

0 commit comments

Comments
 (0)