-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (40 loc) · 1000 Bytes
/
test.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
on:
push:
branches: [ 'master', 'release-**' ]
pull_request:
branches: [ 'master', 'release-**' ]
name: Unit Test & Functional Test
jobs:
lint:
name: Lint the code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '14.x'
- name: Install dependencies
run: yarn install
- name: Lint
run: yarn lint
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, macos-11, windows-2022]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '14.x'
- name: Install dependencies
run: yarn install
- name: Run headless test
uses: GabrielBB/xvfb-action@v1
with:
run: yarn test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}