Skip to content

Commit 0e5946c

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

File tree

4 files changed

+48
-7
lines changed

4 files changed

+48
-7
lines changed

.github/workflows/ci.yml

+2-2
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
@@ -46,4 +46,4 @@ jobs:
4646
main-branch-name: 'develop'
4747

4848
- run: pnpm exec nx-cloud record -- nx format:check
49-
- run: pnpm exec nx affected -t lint test build e2e-ci --parallel=5 --exclude=smoke
49+
- run: pnpm exec nx affected -t lint test-ci build e2e-ci --exclude=smoke

.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
+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
distribute-on:
2+
default: auto linux-medium-js-java-flutter, 1 linux-medium-js
3+
4+
assignment-rules:
5+
- target: build
6+
runs-on:
7+
- linux-medium-js
8+
9+
- target: test
10+
runs-on:
11+
- linux-medium-js
12+
13+
- target: lint
14+
runs-on:
15+
- linux-medium-js
16+
17+
- project: nx-spring-boot-e2e
18+
target: e2e
19+
runs-on:
20+
- linux-medium-js-java-flutter
21+
22+
- project: nx-quarkus-e2e
23+
target: e2e
24+
runs-on:
25+
- linux-medium-js-java-flutter
26+
27+
- project: nx-micronaut-e2e
28+
target: e2e
29+
runs-on:
30+
- linux-medium-js-java-flutter
31+
32+
- project: nx-ktor-e2e
33+
target: e2e
34+
runs-on:
35+
- linux-medium-js-java-flutter
36+
37+
- project: nx-flutter-e2e
38+
target: e2e
39+
runs-on:
40+
- linux-medium-js-java-flutter
41+
42+
- project: nx-melo-e2e
43+
target: e2e
44+
runs-on:
45+
- linux-medium-js-java-flutter

.nx/workflows/dynamic-changesets.yaml

-4
This file was deleted.

0 commit comments

Comments
 (0)