File tree Expand file tree Collapse file tree 3 files changed +28
-2
lines changed
Expand file tree Collapse file tree 3 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 1+ name : FRUI Test Suite - Coverage Report
2+ on : ["push", "pull_request"]
3+ jobs :
4+ test :
5+ runs-on : ubuntu-latest
6+ steps :
7+ - uses : actions/checkout@v4
8+ - name : Set up Node.js
9+ uses : actions/setup-node@v4
10+ with :
11+ node-version : ' 20.x'
12+ - name : Install dependencies
13+ run : yarn
14+ - name : Building Code
15+ run : yarn build
16+ - name : Run Tests
17+ run : yarn test
18+ - name : Make Report
19+ run : yarn report
20+ - name : Coveralls
21+ uses : coverallsapp/github-action@v2
22+ with :
23+ github-token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 9595 "build:tsc:esm" : " tsc -p ./tsconfig.esm.json" ,
9696 "build:docs" : " tsx scripts/build.ts" ,
9797 "dev" : " tsx scripts/develop.ts" ,
98- "test" : " vitest --config vitest.config.ts"
98+ "test" : " vitest --config vitest.config.ts" ,
99+ "report" : " vitest run --coverage"
99100 },
100101 "devDependencies" : {
101102 "@codemirror/language-data" : " 6.5.1" ,
Original file line number Diff line number Diff line change @@ -18,7 +18,9 @@ export default defineConfig({
1818 environment : 'jsdom' ,
1919 globals : true ,
2020 coverage : {
21- reporter : [ 'text' , 'html' ]
21+ provider : 'v8' ,
22+ reportsDirectory : './coverage' ,
23+ reporter : [ 'text' , 'html' , 'lcov' ]
2224 } ,
2325 } ,
2426} as UserConfig )
You can’t perform that action at this time.
0 commit comments