Skip to content

Commit 4ebc9f9

Browse files
committed
build(ci): another attempt at fixing cypress runner
1 parent f1ce62e commit 4ebc9f9

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/main.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,15 @@ jobs:
3333
- run: pnpm typecheck
3434
- run: pnpm test -- --coverage
3535
- run: npx codecov -t ${{ secrets.CODECOV_TOKEN }}
36+
37+
build:
38+
name: Build website
39+
runs-on: ubuntu-latest
40+
container:
41+
image: cypress/browsers:node18.6.0-chrome105-ff104
42+
options: --user 1001
43+
needs: validate
44+
steps:
3645
- run: pnpm build
3746

3847
- name: Save build folder
@@ -48,7 +57,7 @@ jobs:
4857
container:
4958
image: cypress/browsers:node18.6.0-chrome105-ff104
5059
options: --user 1001
51-
needs: validate
60+
needs: build
5261
steps:
5362
- uses: actions/checkout@v3
5463
- uses: pnpm/action-setup@v2.2.4
@@ -66,7 +75,7 @@ jobs:
6675
path: .next
6776

6877
- name: "UI Tests - Chrome"
69-
uses: cypress-io/github-action@v4
78+
uses: cypress-io/github-action@v5
7079
with:
7180
start: pnpm start
7281
wait-on: "http://localhost:3000"
@@ -103,7 +112,7 @@ jobs:
103112
container:
104113
image: cypress/browsers:node18.6.0-chrome105-ff104
105114
options: --user 1001
106-
needs: validate
115+
needs: build
107116
steps:
108117
- uses: actions/checkout@v3
109118
- uses: pnpm/action-setup@v2.2.4
@@ -121,7 +130,7 @@ jobs:
121130
path: .next
122131

123132
- name: "UI Tests - Firefox"
124-
uses: cypress-io/github-action@v4
133+
uses: cypress-io/github-action@v5
125134
with:
126135
start: pnpm start
127136
wait-on: "http://localhost:3000"

0 commit comments

Comments
 (0)