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 fb19345
Show file tree
Hide file tree
Showing 4 changed files with 27 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
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,3 @@
"*.{js,css,md}": "prettier --write"
}
}

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 fb19345

Please sign in to comment.