-
Notifications
You must be signed in to change notification settings - Fork 9
45 lines (43 loc) · 1.21 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
45
name: CI
on:
push:
branches:
- master
- main
pull_request:
permissions:
contents: read
jobs:
eslint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install modules
run: yarn
- name: Run ESLint
run: yarn lint --max-warnings 0
build-examples:
name: Build examples
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build Examples
working-directory: ./examples
run: make examples
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install modules
run: yarn
- name: Build library
run: yarn build
- name: Run tests
run: yarn test
env:
CUSTOM_PROJECT_ID: ${{ secrets.CUSTOM_PROJECT_ID }}
CUSTOM_PROJECT_TOKEN: ${{ secrets.CUSTOM_PROJECT_TOKEN }}
ENDPOINT: ${{ secrets.ENDPOINT }}
ANONYMOUS_PROJECT_ID: ${{ secrets.ANONYMOUS_PROJECT_ID }}