-
Notifications
You must be signed in to change notification settings - Fork 9
42 lines (42 loc) · 1.06 KB
/
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
41
42
on:
push:
branches: [ 'main', 'release-**' ]
pull_request:
branches: [ 'main', 'release-**' ]
name: Test
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, macos-10.15, windows-2022]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: setup rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
target: wasm32-wasi
components: rustfmt,rust-src,clippy
default: true
profile: minimal
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '14.x'
- name: Install dependencies
run: yarn install
- name: run fmt check
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
- name: Run tslint check
run: yarn lint:ts:tslint
- name: Run headless test
uses: GabrielBB/xvfb-action@v1
with:
run: yarn test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}