Skip to content

Commit d4dbaa4

Browse files
authored
chore: [nx migration] move-options-to-target-defaults (#556)
1 parent 367362b commit d4dbaa4

File tree

7 files changed

+355
-288
lines changed

7 files changed

+355
-288
lines changed

.github/workflows/basic-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
- uses: actions/checkout@v3
5454
- uses: ./.github/actions/setup
5555

56-
- run: npx nx test --code-coverage
56+
- run: npx nx test --configuration="ci"
5757

5858
- name: Archive coverage report
5959
uses: actions/upload-artifact@v3

.github/workflows/e2e-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ jobs:
1212
- uses: actions/checkout@v3
1313
- uses: ./.github/actions/setup
1414

15-
- run: npx nx e2e ngx-deploy-npm-e2e
15+
- run: npx nx e2e ngx-deploy-npm-e2e --configuration="ci"

nx.json

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,22 @@
3838
"inputs": ["production", "^production"],
3939
"cache": true
4040
},
41-
"test": {
42-
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"],
43-
"cache": true
44-
},
4541
"lint": {
4642
"inputs": ["default", "{workspaceRoot}/.eslintrc.json"],
4743
"cache": true
4844
},
49-
"e2e": {
50-
"cache": true
45+
"@nx/jest:jest": {
46+
"cache": true,
47+
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"],
48+
"options": {
49+
"passWithNoTests": true
50+
},
51+
"configurations": {
52+
"ci": {
53+
"ci": true,
54+
"codeCoverage": true
55+
}
56+
}
5157
}
5258
}
5359
}

0 commit comments

Comments
 (0)