forked from TypeScriptToLua/TypeScriptToLua
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (40 loc) · 964 Bytes
/
ci.yml
File metadata and controls
45 lines (40 loc) · 964 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
41
42
43
44
45
name: CI
on:
push:
branches: master
pull_request:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- run: npm install --global npm@6
- run: npm ci
- run: npm run lint
env:
CI: true
test:
name: Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v1
- name: Use Node.js 8.5.0
uses: actions/setup-node@v1
with:
node-version: 8.5.0
- run: npm install --global npm@6
- run: npm ci
- run: npm run build
- run: npx jest --maxWorkers 2 --coverage
env:
CI: true
- if: matrix.os == 'ubuntu-latest'
continue-on-error: true
uses: codecov/codecov-action@v1.0.0
with:
token: ${{ secrets.CODECOV_TOKEN }}