-
Notifications
You must be signed in to change notification settings - Fork 35
39 lines (38 loc) · 922 Bytes
/
ci.yaml
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
name: Continuous Integration
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
- master
jobs:
report:
name: Report
runs-on: ubuntu-latest
steps:
- name: ref
run: echo ${{ github.ref }}
- name: event_name
run: echo ${{ github.event_name }}
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: '18'
- name: install
run: npm install
- name: build
run: npm run build
- name: coverage
run: npm run coverage
- name: Upload coverage to Codecov
if: github.event_name == 'push' && endsWith(github.ref,'/master')
uses: codecov/[email protected]
# should not need token as it is a public repo
with:
token: ${{secrets.CODECOV_TOKEN}}