-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (31 loc) · 845 Bytes
/
main.yml
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
41
# This workflow exists solely to send the current code coverage of the `main` branch to Codecov. This is used
# both for the README badge and for the codecov bot's comment on PRs.
name: Main
on:
push:
branches:
- main
permissions:
contents: read
env:
NODE_VERSION: 20.12.2
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Configure node
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install packages
run: npm ci
- name: Lint
run: npm run lint
- name: Run unit tests
run: npm run test:ci
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}