-
Notifications
You must be signed in to change notification settings - Fork 9
40 lines (34 loc) · 848 Bytes
/
coverage.yml
File metadata and controls
40 lines (34 loc) · 848 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
name: Build and publish test coverage
on:
push:
branches:
- main
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node: [10, 12]
steps:
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: checkout
uses: actions/checkout@master
- name: Install dependencies
run: |
yarn
cd packages/url && yarn
cd ../utils && yarn
cd ../../
- name: Test
run: yarn test:unit-coverage
- name: Publish test coverage report
uses: EndBug/add-and-commit@v4
with:
add: docs
force: true
message: Add generated docs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}