Skip to content

Commit

Permalink
chore: streamline CI workflow, enable distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHenry committed Mar 1, 2024
1 parent 400e502 commit 1581187
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 19 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/ci_main.yml
Expand Up @@ -19,27 +19,19 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Initialize Nx Cloud distributed CI run
uses: npx nx-cloud start-ci-run --distribute-on="3 linux-medium-js"

- name: Install Dependencies
uses: ./.github/actions/install-dependencies
with:
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
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
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
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 1581187

Please sign in to comment.