-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 899 Bytes
/
nodejs.yml
File metadata and controls
41 lines (33 loc) · 899 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
41
name: Node CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 14.11.0
uses: actions/setup-node@v1
with:
node-version: 14.11.0
- name: yarn install
run: yarn install --frozen-lockfile
env:
CI: true
- name: yarn build
run: yarn build
- name: yarn test:coverage
if: github.ref == 'refs/heads/master'
run: yarn test:coverage
env:
CI: true
- name: Upload Coverage to codecov
if: github.ref == 'refs/heads/master'
uses: codecov/codecov-action@v1.0.3
with:
token: ${{secrets.CODECOV_TOKEN}}
file: ./packages/server/coverage/clover.xml
- name: yarn test
if: github.ref != 'refs/heads/master'
run: yarn test
env:
CI: true