forked from HospitalRun/components
44 lines (42 loc) · 1.05 KB
/
ci.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
name: GitHub CI
on:
push:
branches:
- "!master"
pull_request:
branches:
- master
jobs:
npm:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [14.x]
os: [macOS-latest, windows-latest, ubuntu-latest]
steps:
- run: git config --global core.autocrlf false # this is needed to prevent git changing EOL after cloning on Windows OS
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install with npm
run: |
npm install
- name: Lint code
run: |
npm run lint
- name: Build
run: |
npm run build
- name: Storybook build
run: |
npm run build-storybook
- name: Run tests
run: |
npm run coveralls
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./lcov.info