Skip to content

Commit a274c1a

Browse files
chore: fix gha workflow (PROVCON-4961) (#2880)
* chore: use node 18.20.4 for cypress (PROVCON-4961) * chore: use node 18.20.3 for cypress (PROVCON-4961) * chore: test the pipeline on pull request (PROVCON-4961) * chore: use openssl legacy provider, copy cypress config (PROVCON-4961) * chore: add stoplight scripts as they are needed to run e2e tests (PROVCON-4961) * chore: adjust uploaded artifact names (PROVCON-4961) * chore: remove pull request trigger (PROVCON-4961)
1 parent e3f5cce commit a274c1a

File tree

1 file changed

+17
-21
lines changed

1 file changed

+17
-21
lines changed

.github/workflows/test-and-release.yml

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
- run: yarn test.prod
1717
- uses: actions/upload-artifact@v4.1.0
1818
with:
19+
name: test-results
1920
path: test-results
2021
build:
2122
runs-on: ubuntu-latest
@@ -36,6 +37,11 @@ jobs:
3637
packages/elements-dev-portal/dist/
3738
packages/elements-dev-portal/package.json
3839
examples/
40+
examples-dev/
41+
cypress/
42+
cypress.config.ts
43+
tsconfig.json
44+
node_modules/@stoplight/scripts/
3945
use-local-elements.sh
4046
package.json
4147
yarn.lock
@@ -51,13 +57,14 @@ jobs:
5157
e2e-react-cra:
5258
runs-on: ubuntu-latest
5359
container:
54-
image: cypress/base:18.20.0
60+
image: cypress/base:18.20.3
5561
env:
5662
TERM: xterm
5763
needs:
5864
- build
5965
env:
6066
example-name: react-cra
67+
NODE_OPTIONS: --openssl-legacy-provider
6168
steps:
6269
- uses: actions/download-artifact@v4.1.0
6370
with:
@@ -76,24 +83,21 @@ jobs:
7683
- name: Run E2E checks
7784
run: yarn e2e:run:${{ env.example-name }}
7885
- uses: actions/upload-artifact@v4.1.0
86+
if: always()
7987
with:
88+
name: e2e-react-cra-results
8089
path: cypress/results
81-
- uses: actions/upload-artifact@v4.1.0
82-
with:
83-
path: cypress/results/videos
84-
- uses: actions/upload-artifact@v4.1.0
85-
with:
86-
path: cypress/results/screenshots
8790
e2e-angular:
8891
runs-on: ubuntu-latest
8992
container:
90-
image: cypress/base:18.20.0
93+
image: cypress/base:18.20.3
9194
env:
9295
TERM: xterm
9396
needs:
9497
- build
9598
env:
9699
example-name: angular
100+
NODE_OPTIONS: --openssl-legacy-provider
97101
steps:
98102
- uses: actions/download-artifact@v4.1.0
99103
with:
@@ -112,18 +116,14 @@ jobs:
112116
- name: Run E2E checks
113117
run: yarn e2e:run:${{ env.example-name }}
114118
- uses: actions/upload-artifact@v4.1.0
119+
if: always()
115120
with:
121+
name: e2e-angular-results
116122
path: cypress/results
117-
- uses: actions/upload-artifact@v4.1.0
118-
with:
119-
path: cypress/results/videos
120-
- uses: actions/upload-artifact@v4.1.0
121-
with:
122-
path: cypress/results/screenshots
123123
e2e-static-html:
124124
runs-on: ubuntu-latest
125125
container:
126-
image: cypress/base:18.20.0
126+
image: cypress/base:18.20.3
127127
env:
128128
TERM: xterm
129129
needs:
@@ -148,14 +148,10 @@ jobs:
148148
- name: Run E2E checks
149149
run: yarn e2e:run:${{ env.example-name }}
150150
- uses: actions/upload-artifact@v4.1.0
151+
if: always()
151152
with:
153+
name: e2e-static-html-results
152154
path: cypress/results
153-
- uses: actions/upload-artifact@v4.1.0
154-
with:
155-
path: cypress/results/videos
156-
- uses: actions/upload-artifact@v4.1.0
157-
with:
158-
path: cypress/results/screenshots
159155
release:
160156
if: github.ref == 'refs/heads/main'
161157
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)