-
Notifications
You must be signed in to change notification settings - Fork 46
43 lines (41 loc) · 861 Bytes
/
build.yml
File metadata and controls
43 lines (41 loc) · 861 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
name: Build
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [
10,
12,
14,
]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: |
npm ci
- name: Check formatting
run: |
npx prettier -c 'src/*.ts' 'example/**/*.{js,ts}'
- name: Lint with eslint
run: |
npm run lint
- name: Transpile ts files
run: |
npm run build
- name: Run integration tests
run: |
./test.sh