File tree Expand file tree Collapse file tree 3 files changed +47
-1
lines changed Expand file tree Collapse file tree 3 files changed +47
-1
lines changed Original file line number Diff line number Diff line change 15
15
with :
16
16
node-version : 22
17
17
- run : npm run lint
18
+
18
19
nodejs :
19
20
strategy :
20
21
fail-fast : false
46
47
- run : npm run test:cover
47
48
env :
48
49
FORCE_COLOR : true
50
+ - uses : actions/upload-artifact@v4
51
+ if : vars.ENABLE_COVERALLS == 'true'
52
+ with :
53
+ name : lcov-${{ matrix.node }}
54
+ path : coverage/lcov.info
55
+ if-no-files-found : error
49
56
- run : npm run migration up
50
57
- run : npm run e2e
51
58
- run : npm run e2e:dev
59
+
60
+ coverage :
61
+ runs-on : ubuntu-latest
62
+ if : vars.ENABLE_COVERALLS == 'true'
63
+ needs : [nodejs]
64
+ steps :
65
+ - uses : actions/checkout@v4
66
+ - run : |
67
+ curl -L https://coveralls.io/coveralls-linux.tar.gz | tar -xz -C /usr/local/bin
68
+ - uses : actions/download-artifact@v4
69
+ with :
70
+ name : lcov-22
71
+ - run : coveralls report coverage/lcov.info
72
+ env :
73
+ COVERALLS_REPO_TOKEN : ${{ secrets.COVERALLS_REPO_TOKEN }}
74
+
52
75
docker :
53
76
runs-on : ubuntu-latest
54
77
services :
Original file line number Diff line number Diff line change 34
34
- run : npm run test:cover
35
35
env :
36
36
FORCE_COLOR : true
37
+ - uses : actions/upload-artifact@v4
38
+ if : vars.ENABLE_COVERALLS == 'true'
39
+ with :
40
+ name : lcov-${{ matrix.node }}
41
+ path : coverage/lcov.info
42
+ if-no-files-found : error
37
43
- run : npm run migration up
38
44
- run : npm run e2e
39
45
- run : npm run e2e:dev
46
+
47
+ coverage :
48
+ runs-on : ubuntu-latest
49
+ if : vars.ENABLE_COVERALLS == 'true'
50
+ needs : [nodejs]
51
+ steps :
52
+ - uses : actions/checkout@v4
53
+ - run : |
54
+ curl -L https://coveralls.io/coveralls-linux.tar.gz | tar -xz -C /usr/local/bin
55
+ - uses : actions/download-artifact@v4
56
+ with :
57
+ name : lcov-22
58
+ path : coverage/
59
+ - run : coveralls report coverage/lcov.info
60
+ env :
61
+ COVERALLS_REPO_TOKEN : ${{ secrets.COVERALLS_REPO_TOKEN }}
62
+
40
63
docker :
41
64
runs-on : ubuntu-latest
42
65
services :
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export default defineConfig({
11
11
...coverageConfigDefaults . exclude ,
12
12
] ,
13
13
provider : "v8" ,
14
- reporter : [ "text" , "html" ] ,
14
+ reporter : [ "text" , "html" , "lcovonly" ] ,
15
15
reportsDirectory : "./coverage" ,
16
16
} ,
17
17
workspace : [ "*/vite.config.js" ] ,
You can’t perform that action at this time.
0 commit comments