-
Notifications
You must be signed in to change notification settings - Fork 31
41 lines (36 loc) · 1 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
name: CI
on: [push]
jobs:
build-and-deploy:
name: ${{ matrix.kind }} ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macOS-latest, ubuntu-latest, windows-latest]
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
with:
persist-credentials: false
- name: Install and Test 🔧
run: |
npm install
npm run lint
npm run test
- name: Build 🙅♀️
run: |
npm run build
- name: Codecov 💉
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./test/unit/coverage/
- name: Deploy 🚀
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: gh-pages
FOLDER: dist
CLEAN: true