Skip to content

Commit 1581187

Browse files
committed
chore: streamline CI workflow, enable distribution
1 parent 400e502 commit 1581187

File tree

4 files changed

+34
-19
lines changed

4 files changed

+34
-19
lines changed

.github/workflows/ci_main.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,27 +19,19 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v4
2121

22+
- name: Initialize Nx Cloud distributed CI run
23+
uses: npx nx-cloud start-ci-run --distribute-on="3 linux-medium-js"
24+
2225
- name: Install Dependencies
2326
uses: ./.github/actions/install-dependencies
2427
with:
2528
node-version: ${{ matrix.node }}
2629

2730
- name: Build, test and lint all projects (except website)
28-
run: yarn nx run-many -t build lint test --exclude=rxjs.dev
29-
30-
- name: rxjs lint
31-
run: yarn workspace rxjs lint
32-
- name: rxjs build
33-
run: yarn workspace rxjs build
34-
- name: rxjs test
35-
run: yarn workspace rxjs test
36-
- name: rxjs dtslint
37-
run: yarn workspace rxjs dtslint
38-
- name: rxjs test:import
39-
run: yarn workspace rxjs test:import
40-
- name: rxjs test:esm
41-
run: yarn workspace rxjs test:esm
31+
run: yarn nx run-many -t build lint test dtslint test:import test:esm --exclude=rxjs.dev
32+
4233
- name: rxjs.dev build
4334
run: yarn workspace rxjs.dev build --prod
35+
4436
- name: rxjs.dev test
4537
run: yarn workspace rxjs.dev test --watch=false --browsers=ChromeHeadless

nx.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
"inputs": ["production", "^production"],
1010
"cache": true
1111
},
12-
"test:circular": {
13-
"dependsOn": ["build"]
14-
},
1512
"test": {
1613
"cache": true
1714
},

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@
5555
"prettier --write"
5656
],
5757
"*.{js,css,md}": "prettier --write"
58+
},
59+
"volta": {
60+
"node": "20.11.1",
61+
"yarn": "1.22.21"
5862
}
5963
}
60-

packages/rxjs/package.json

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
},
6161
"scripts": {
6262
"lint": "eslint --ext=ts,js src spec spec-dtslint",
63-
"dtslint": "npm run lint && tsc -b ./src/tsconfig.types.json",
63+
"dtslint": "tsc -b ./src/tsconfig.types.json",
6464
"test": "cross-env TS_NODE_PROJECT=tsconfig.mocha.json mocha --config spec/support/.mocharc.js \"spec/**/*-spec.ts\"",
6565
"test:esm": "node spec/module-test-spec.mjs",
6666
"test:circular": "dependency-cruiser --validate .dependency-cruiser.json -x \"^node_modules\" dist/esm",
@@ -180,6 +180,29 @@
180180
"dependsOn": [
181181
"^build"
182182
]
183+
},
184+
"test:esm": {
185+
"dependsOn": [
186+
"build"
187+
],
188+
"cache": true
189+
},
190+
"test:circular": {
191+
"dependsOn": [
192+
"build"
193+
]
194+
},
195+
"test:import": {
196+
"dependsOn": [
197+
"build"
198+
],
199+
"cache": true
200+
},
201+
"dtslint": {
202+
"dependsOn": [
203+
"^build"
204+
],
205+
"cache": true
183206
}
184207
}
185208
}

0 commit comments

Comments
 (0)