-
-
Notifications
You must be signed in to change notification settings - Fork 45
50 lines (44 loc) · 1.07 KB
/
autoTest.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
46
47
48
49
50
---
name: "Code Checks"
on:
pull_request:
types: ["opened", "edited", "reopened", "synchronize", "ready_for_review", "review_requested"]
push:
branches:
- "dev"
jobs:
ESM:
name: "Compile & Sanity Check ESM"
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
- name: "Install dependencies"
run: npm install
- name: "Compile & Sanity Test"
run: npm run test-esm
Binary:
strategy:
matrix:
runs-on: [ubuntu-latest, windows-latest]
name: "Build & Sanity Check ${{ matrix.runs-on }} Binary"
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: latest
- name: "Install dependencies"
run: npm install
- name: "Build & Sanity Test"
run: npm run test-${{ matrix.runs-on }}
eslint:
name: eslint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: reviewdog/action-eslint@v1
with:
reporter: github-check
eslint_flags: "src/"
github_token: ${{ secrets.GITHUB_TOKEN }}