forked from vivo-community/scholars-angular
-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (28 loc) · 901 Bytes
/
npm.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
name: Node CI with NPM
on: [push, pull_request, workflow_dispatch]
jobs:
build:
strategy:
matrix:
runs-on: [windows-latest, macos-latest, ubuntu-latest]
node-version: [16, 18]
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Install dependencies
run: yarn install --network-timeout 3600000
- name: Test CI
uses: GabrielBB/xvfb-action@v1
with:
run: yarn test:ci
- name: Coveralls coverage report
if: ${{ matrix.runs-on == 'windows-latest' && matrix.node-version == '18' }}
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./coverage/scholars-angular/lcov.info