-
Notifications
You must be signed in to change notification settings - Fork 7
67 lines (55 loc) · 1.3 KB
/
lint.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Lint
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
name: ${{ matrix.target.rid }}
strategy:
fail-fast: false
matrix:
target:
- goos: windows
rid: win-x64
os: windows-2022
- goos: linux
rid: linux-x64
os: ubuntu-20.04
- goos: darwin
rid: osx-x64
os: macos-11
runs-on: ${{ matrix.target.os }}
env:
GOOS: ${{ matrix.target.goos }}
GOARCH: amd64
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- name: Cache Build Caches
uses: actions/cache@v3
with:
path: build/caches/
key: koi-${{ runner.os }}-${{ hashFiles('config.ts') }}
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: yarn
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ~1.19.0
cache: true
cache-dependency-path: config.ts
- name: Install Build Package
run: |
yarn install --frozen-lockfile
shell: bash
- name: Lint
run: |
yarn gulp ciLint
shell: bash