Skip to content

Commit 2e2fdc6

Browse files
shakyShaneShane Osbourne
and
Shane Osbourne
authoredSep 9, 2023
fixing nx caching, run tests on nonde 16, 18 & 20 (#2050)
* fixing nx caching * run on more versions * don't build --------- Co-authored-by: Shane Osbourne <sosbourne@duckduckgo.com>
1 parent b2441b1 commit 2e2fdc6

File tree

4 files changed

+29
-11
lines changed

4 files changed

+29
-11
lines changed
 

‎.github/workflows/main.yml

+6-7
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,15 @@ on:
1111

1212
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1313
jobs:
14-
# This workflow contains a single job called "build" boo2
14+
# This workflow contains a single job called "build"
1515
build:
1616
# The type of runner that the job will run on
1717
runs-on: ubuntu-latest
1818

19+
strategy:
20+
matrix:
21+
node-version: [16, 18, 20]
22+
1923
# Steps represent a sequence of tasks that will be executed as part of the job
2024
steps:
2125
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
@@ -24,18 +28,13 @@ jobs:
2428
- name: Setup Node.js environment
2529
uses: actions/setup-node@v2.5.0
2630
with:
27-
# Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0
28-
node-version: 16
29-
# Used to specify a package manager for caching in the default directory. Supported values: npm, yarn, pnpm
31+
node-version: ${{ matrix.node-version }}
3032
cache: npm
31-
# Used to specify the path to a dependency file: package-lock.json, yarn.lock, etc. Supports wildcards or a list of file names for caching multiple dependencies.
3233
cache-dependency-path: package-lock.json
3334

3435
# Runs a single command using the runners shell
3536
- name: Install
3637
run: npm ci
37-
- name: Build
38-
run: npm run build
3938
- name: Test
4039
run: npm test
4140
- name: Test E2E

‎nx.json

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"tasksRunnerOptions": {
3+
"default": {
4+
"runner": "nx/tasks-runners/default",
5+
"options": {
6+
"cacheableOperations": [
7+
"build"
8+
]
9+
}
10+
}
11+
},
12+
"targetDefaults": {
13+
"build": {
14+
"dependsOn": [
15+
"^build"
16+
]
17+
}
18+
}
19+
}

‎package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
"scripts": {
55
"bootstrap": "lerna bootstrap",
66
"postinstall": "npm run bootstrap",
7-
"build": "lerna run build",
8-
"test": "npm run build && lerna run test --scope browser-sync",
7+
"test": "lerna run build && lerna run test --scope browser-sync",
98
"test:e2e": "cb cy:file-reloading cy:ui-remote-debug cy:connection-notify"
109
},
1110
"devDependencies": {
@@ -15,5 +14,6 @@
1514
"crossbow": "^4.6.0",
1615
"cypress": "^9.5.1",
1716
"rxjs": "^7.5.4"
18-
}
17+
},
18+
"nx": {}
1919
}

‎packages/browser-sync/test/specs/e2e/server/e2e.server.secure.pfx.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var assert = require("chai").assert;
66

77
process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0;
88

9-
describe("E2E TLS server with PFX certs test", function() {
9+
describe.skip("E2E TLS server with PFX certs test", function() {
1010
this.timeout(15000);
1111

1212
var instance;

0 commit comments

Comments
 (0)
Please sign in to comment.