Skip to content

Commit

Permalink
chore: streamline CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHenry committed Mar 1, 2024
1 parent 400e502 commit 88ef052
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 19 deletions.
17 changes: 3 additions & 14 deletions .github/workflows/ci_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,10 @@ jobs:
node-version: ${{ matrix.node }}

- name: Build, test and lint all projects (except website)
run: yarn nx run-many -t build lint test --exclude=rxjs.dev

- name: rxjs lint
run: yarn workspace rxjs lint
- name: rxjs build
run: yarn workspace rxjs build
- name: rxjs test
run: yarn workspace rxjs test
- name: rxjs dtslint
run: yarn workspace rxjs dtslint
- name: rxjs test:import
run: yarn workspace rxjs test:import
- name: rxjs test:esm
run: yarn workspace rxjs test:esm
run: yarn nx run-many -t build lint test dtslint test:import test:esm --exclude=rxjs.dev

- name: rxjs.dev build
run: yarn workspace rxjs.dev build --prod

- name: rxjs.dev test
run: yarn workspace rxjs.dev test --watch=false --browsers=ChromeHeadless
3 changes: 0 additions & 3 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
"inputs": ["production", "^production"],
"cache": true
},
"test:circular": {
"dependsOn": ["build"]
},
"test": {
"cache": true
},
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@
"prettier --write"
],
"*.{js,css,md}": "prettier --write"
},
"volta": {
"node": "20.11.1",
"yarn": "1.22.21"
}
}

25 changes: 24 additions & 1 deletion packages/rxjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
},
"scripts": {
"lint": "eslint --ext=ts,js src spec spec-dtslint",
"dtslint": "npm run lint && tsc -b ./src/tsconfig.types.json",
"dtslint": "tsc -b ./src/tsconfig.types.json",
"test": "cross-env TS_NODE_PROJECT=tsconfig.mocha.json mocha --config spec/support/.mocharc.js \"spec/**/*-spec.ts\"",
"test:esm": "node spec/module-test-spec.mjs",
"test:circular": "dependency-cruiser --validate .dependency-cruiser.json -x \"^node_modules\" dist/esm",
Expand Down Expand Up @@ -180,6 +180,29 @@
"dependsOn": [
"^build"
]
},
"test:esm": {
"dependsOn": [
"build"
],
"cache": true
},
"test:circular": {
"dependsOn": [
"build"
]
},
"test:import": {
"dependsOn": [
"build"
],
"cache": true
},
"dtslint": {
"dependsOn": [
"^build"
],
"cache": true
}
}
}
Expand Down

0 comments on commit 88ef052

Please sign in to comment.