Skip to content

Commit 0be4744

Browse files
committed
skip playwright e2e tests on gh workflow
1 parent 99f8706 commit 0be4744

File tree

5 files changed

+25
-19
lines changed

5 files changed

+25
-19
lines changed

.github/workflows/main.yml

+20-15
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,32 @@ jobs:
1717

1818
- uses: pnpm/action-setup@v4
1919
with:
20-
version: 9.7.1
20+
version: 9.10.0
2121
run_install: true
2222
env:
2323
NPM_TOKEN: xxx
2424

25-
- name: Install playwright browsers
26-
run: pnpm exec playwright install
27-
28-
- name: Run all checks
29-
run: xvfb-run pnpm run ci
25+
- name: Run all tests
26+
run: pnpm run ci
3027
env:
3128
NPM_TOKEN: xxx
3229

33-
- name: Upload twopoint5d-elements-e2e test-results artifacts
34-
uses: actions/upload-artifact@v3
35-
if: failure()
36-
with:
37-
retention-days: 3
38-
name: twopoint5d-elements-e2e-test-results
39-
path: |
40-
packages/twopoint5d-elements-e2e/test-results
30+
# - name: Install playwright browsers
31+
# run: pnpm exec playwright install
32+
33+
# - name: Run all checks
34+
# run: xvfb-run pnpm run ci
35+
# env:
36+
# NPM_TOKEN: xxx
37+
38+
# - name: Upload twopoint5d-elements-e2e test-results artifacts
39+
# uses: actions/upload-artifact@v3
40+
# if: failure()
41+
# with:
42+
# retention-days: 3
43+
# name: twopoint5d-elements-e2e-test-results
44+
# path: |
45+
# packages/twopoint5d-elements-e2e/test-results
4146

4247
deploy:
4348
name: Deploy packages
@@ -52,7 +57,7 @@ jobs:
5257

5358
- uses: pnpm/action-setup@v4
5459
with:
55-
version: 9.7.1
60+
version: 9.10.0
5661
run_install: true
5762
env:
5863
NPM_TOKEN: xxx

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"scripts": {
1414
"build": "pnpm nx run-many -t build",
1515
"test": "pnpm nx run-many -t test",
16+
"test:ci": "pnpm nx run-many -t test --projects=tag:ci",
1617
"lint": "pnpm nx run-many -t lint",
1718
"test:affected": "pnpm nx affected -t test",
1819
"clean": "pnpm nx run-many -t clean && rimraf dist",
@@ -21,7 +22,7 @@
2122
"cbt": "pnpm run-s -sn clean build test",
2223
"lookbook": "pnpm nx dev lookbook",
2324
"landing-page": "pnpm nx dev landing-page",
24-
"ci": "pnpm run-s -sn build lint test",
25+
"ci": "pnpm run-s -sn build lint test:ci",
2526
"playwright:install": "pnpm exec playwright install",
2627
"ci:install": "pnpm run-s -sn playwright:install ci"
2728
},

packages/twopoint5d-elements/project.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@
2020
"dependsOn": ["^build"]
2121
}
2222
},
23-
"tags": []
23+
"tags": ["ci"]
2424
}

packages/twopoint5d-r3f/project.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
}
1414
}
1515
},
16-
"tags": []
16+
"tags": ["ci"]
1717
}

packages/twopoint5d/project.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
}
1414
}
1515
},
16-
"tags": []
16+
"tags": ["ci"]
1717
}

0 commit comments

Comments
 (0)