-
Notifications
You must be signed in to change notification settings - Fork 484
48 lines (41 loc) · 990 Bytes
/
test.yaml
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
46
47
48
name: Tests
on:
push:
branches:
- master
- 'release-*'
pull_request:
branches:
- master
- 'release-*'
jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: actions/setup-node@v3
with:
node-version: '16.x'
- name: Install Python for node-sass
run: sudo apt-get install -y python2
- name: Install packages
run: ./scripts/bootstrap
- name: Run tests
run: yarn test
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: actions/setup-node@v3
with:
node-version: '16.x'
- name: Install Python for node-sass
run: sudo apt-get install -y python2
- name: Install packages
run: ./scripts/bootstrap
- name: Run linter
run: yarn lint:js