-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (42 loc) · 1.17 KB
/
component-tests.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: component-tests
on:
pull_request:
paths:
- .github/workflows/component-tests.yml
- generators/**/*
- test/**/*
- package*.json
jobs:
build:
runs-on: ${{ matrix.runner }}-latest
name: ${{ matrix.os }}-component-tests
strategy:
fail-fast: false
matrix:
os: [linux, mac, windows]
include:
- os: linux
runner: ubuntu
- os: windows
runner: windows
- os: mac
runner: macos
steps:
- name: checkout
uses: actions/checkout@v2
- name: use Node.js v1
uses: actions/setup-node@v2
with:
node-version: 14
- name: install dependencies
run: npm install
- name: run component tests
run: npm run coverage:component
# TODO: could see if there's any attribute we could use
# with Codecov and TestSpace to publish these results
# separately from the unit tests
# - name: publish code coverage results
# uses: codecov/codecov-action@v2
# with:
# files: .coverage/component/cobertura-coverage.xml
# if: matrix.node-version == 16