forked from hasadna/open-bus-map-search
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 932 Bytes
/
Copy pathcoverage.yml
File metadata and controls
40 lines (36 loc) · 932 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Code coverage
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
actions: write
env:
VITE_COVERAGE: true
SHA: ${{ github.event.pull_request.head.sha || github.sha }}
jobs:
test-with-coverage:
name: Test with Coverage
runs-on: ubuntu-latest
steps:
- name: Set timezone
run: echo "TZ=Asia/Jerusalem" >> $GITHUB_ENV
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: latest
- name: Run install
run: npm ci
- run: npx playwright install chromium
- name: Run test
run: npm test
- run: npx nyc report --reporter=lcovonly
- name: Upload to Coveralls
if: always()
continue-on-error: true
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}