1111
1212jobs :
1313 validate :
14- name : Validate Using Node 16
14+ name : Validate Using Latest Node LTS
1515 runs-on : ubuntu-latest
1616 container :
17- image : cypress/browsers:node16.14 .0-chrome99-ff97
17+ image : cypress/browsers:node18.6 .0-chrome105-ff104
1818 options : --user 1001
1919 steps :
2020 - uses : actions/checkout@v3
21+ - uses : pnpm/action-setup@v2.2.4
22+ with :
23+ version : 7
24+ - uses : actions/setup-node@v3
25+ with :
26+ node-version : 18
27+ cache : pnpm
2128
2229 - name : Run Lint and Typecheck
23- uses : cypress-io/github-action@v2
30+ uses : cypress-io/github-action@v5
2431 with :
2532 runTests : false
2633
27- - run : yarn
28- - run : yarn lint
29- - run : yarn typecheck
30- - run : yarn test --coverage
34+ - run : pnpm install --frozen-lockfile
35+ - run : pnpm lint
36+ - run : pnpm typecheck
37+ - run : pnpm test --coverage
3138 - run : npx codecov -t ${{ secrets.CODECOV_TOKEN }}
32- - run : yarn build
39+ - run : pnpm build
3340
3441 - name : Save build folder
3542 uses : actions/upload-artifact@v3
@@ -42,12 +49,18 @@ jobs:
4249 name : Test Chrome
4350 runs-on : ubuntu-latest
4451 container :
45- image : cypress/browsers:node16.14 .0-chrome99-ff97
52+ image : cypress/browsers:node18.6 .0-chrome105-ff104
4653 options : --user 1001
4754 needs : validate
4855 steps :
49- - name : Checkout
50- uses : actions/checkout@v3
56+ - uses : actions/checkout@v3
57+ - uses : pnpm/action-setup@v2.2.4
58+ with :
59+ version : 7
60+ - uses : actions/setup-node@v3
61+ with :
62+ node-version : 18
63+ cache : pnpm
5164
5265 - name : Download the build folders
5366 uses : actions/download-artifact@v3
5871 - name : " UI Tests - Chrome"
5972 uses : cypress-io/github-action@v4
6073 with :
61- start : yarn start
74+ start : pnpm start
6275 wait-on : " http://localhost:3000"
6376 wait-on-timeout : 120
6477 browser : chrome
@@ -91,12 +104,18 @@ jobs:
91104 name : Test Firefox
92105 runs-on : ubuntu-latest
93106 container :
94- image : cypress/browsers:node16.14 .0-chrome99-ff97
107+ image : cypress/browsers:node18.6 .0-chrome105-ff104
95108 options : --user 1001
96109 needs : validate
97110 steps :
98- - name : Checkout
99- uses : actions/checkout@v3
111+ - uses : actions/checkout@v3
112+ - uses : pnpm/action-setup@v2.2.4
113+ with :
114+ version : 7
115+ - uses : actions/setup-node@v3
116+ with :
117+ node-version : 18
118+ cache : pnpm
100119
101120 - name : Download the build folders
102121 uses : actions/download-artifact@v3
@@ -107,7 +126,7 @@ jobs:
107126 - name : " UI Tests - Firefox"
108127 uses : cypress-io/github-action@v4
109128 with :
110- start : yarn start
129+ start : pnpm start
111130 wait-on : " http://localhost:3000"
112131 wait-on-timeout : 120
113132 browser : firefox
0 commit comments