This repository was archived by the owner on May 27, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (46 loc) · 1.31 KB
/
push.yml
File metadata and controls
48 lines (46 loc) · 1.31 KB
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
42
43
44
45
46
47
48
name: Push Actions
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ '10.3.0', '10.18.1', '11.15.0', '12.4.0', '12.8.1', '12.10.0', '13.1.0', '13.7.0' ]
name: Build using Node ${{ matrix.node }}
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Install Node packages
run: npm install
- name: Setup lerna
run: npx lerna bootstrap
- name: Build
run: gulp build
- name: Lint
run: gulp lint
- name: Test
run: gulp test
coverage:
runs-on: ubuntu-latest
name: Generate coverage
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: '13.7.0'
- name: Install Node packages
run: npm install
- name: Setup lerna
run: npx lerna bootstrap
- name: Build
run: gulp build
- name: Generate coverage
run: gulp coverage
- name: Run coverage
run: bash <(curl -Ls https://coverage.codacy.com/get.sh) report -l TypeScript -r "${{ github.workspace}}/build/coverage/lcov.info"
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_KEY }}