-
Notifications
You must be signed in to change notification settings - Fork 22
41 lines (32 loc) · 896 Bytes
/
Copy pathci.yml
File metadata and controls
41 lines (32 loc) · 896 Bytes
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
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
GOPRIVATE: github.com/DouDOU-start/airgate-sdk
jobs:
ci:
name: Lint & Test & Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 11.1.1
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
cache-dependency-path: web/pnpm-lock.yaml
- name: Build frontend
run: cd web && pnpm install --frozen-lockfile && pnpm run build
- uses: actions/setup-go@v5
with:
go-version-file: backend/go.mod
cache-dependency-path: backend/go.sum
- name: Install golangci-lint
run: go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@latest
- name: Run CI checks
run: make ci