-
-
Notifications
You must be signed in to change notification settings - Fork 14
39 lines (37 loc) · 864 Bytes
/
lint.yaml
File metadata and controls
39 lines (37 loc) · 864 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
name: code
on:
push:
branches: [main]
pull_request_target:
jobs:
api:
runs-on: ubuntu-latest
defaults:
run:
working-directory: api/src
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: api/go.mod
cache-dependency-path: api/go.sum
- name: Run formatter
run: go fmt .
- name: Run linter
run: go vet .
web:
runs-on: ubuntu-latest
defaults:
run:
working-directory: web
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: web/package.json
cache-dependency-path: web/package-lock.json
- name: Install dependencies
working-directory: web
run: npm ci
- name: Run check
run: npm run check