-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (27 loc) · 900 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
name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
# Version Spec of the version to use. Examples: 10.x, 10.15.1, >=10.15.0
node-version: ">=14.20.1"
- name: Lint, test, and build
run: |
npm install -g yarn
yarn install
yarn lint
# https://stackoverflow.com/a/52357797/388827
yarn run jest --ci --reporters=jest-junit --reporters=default --coverage
yarn build
- uses: codecov/[email protected]
with:
file: ./coverage/coverage-final.json
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true