File tree Expand file tree Collapse file tree 2 files changed +47
-16
lines changed
Expand file tree Collapse file tree 2 files changed +47
-16
lines changed Original file line number Diff line number Diff line change 1+ name : E2E Tests
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ pull_request :
7+ branches : [ main ]
8+
9+ env :
10+ NODE_VERSION : 18
11+ PNPM_VERSION : 8.5.0
12+
13+ jobs :
14+ test :
15+ runs-on : ubuntu-latest
16+ steps :
17+ - uses : actions/checkout@v4
18+ - name : setup node
19+ uses : actions/setup-node@v4
20+ with :
21+ node-version : ${{ env.NODE_VERSION }}
22+ - name : setup pnpm
23+ uses : pnpm/action-setup@v4
24+ with :
25+ version : ${{ env.PNPM_VERSION }}
26+ - name : Cypress run
27+ uses : cypress-io/github-action@v6
28+ with :
29+ component : true
30+ build : pnpm run build
31+ start : pnpm run start
32+ browser : chrome
33+ env :
34+ COVERAGE : " true"
35+ - name : Upload coverage to Codecov
36+ uses : codecov/codecov-action@v3
37+ with :
38+ token : cf9245e0-e136-4e21-b0ee-35755fa0c493
39+ files : coverage/cypress/lcov.info
40+ flags : appflowy_web_e2e
41+ name : codecov-umbrella-e2e
42+ fail_ci_if_error : true
43+ verbose : true
Original file line number Diff line number Diff line change @@ -30,36 +30,24 @@ jobs:
3030 sudo rm -rf ${GITHUB_WORKSPACE}/.git
3131 sudo rm -rf $ANDROID_HOME/ndk
3232 - name : setup node
33- uses : actions/setup-node@v3
33+ uses : actions/setup-node@v4
3434 with :
3535 node-version : ${{ env.NODE_VERSION }}
3636 - name : setup pnpm
37- uses : pnpm/action-setup@v2
37+ uses : pnpm/action-setup@v4
3838 with :
3939 version : ${{ env.PNPM_VERSION }}
40- # Install pnpm dependencies, cache them correctly
41- # and run all Cypress tests
42- - name : Cypress run
43- uses : cypress-io/github-action@v6
44- with :
45- component : true
46- build : pnpm run build
47- start : pnpm run start
48- browser : chrome
49- env :
50- COVERAGE : " true"
51-
5240 - name : Jest run
5341 run : |
5442 pnpm run test:unit
5543 env :
5644 COVERAGE : " true"
5745
5846 - name : Upload coverage to Codecov
59- uses : codecov/codecov-action@v2
47+ uses : codecov/codecov-action@v3
6048 with :
6149 token : cf9245e0-e136-4e21-b0ee-35755fa0c493
62- files : coverage/jest/lcov.info, coverage/cypress/lcov.info
50+ files : coverage/jest/lcov.info
6351 flags : appflowy_web
6452 name : codecov-umbrella
6553 fail_ci_if_error : true
You can’t perform that action at this time.
0 commit comments