-
Notifications
You must be signed in to change notification settings - Fork 130
47 lines (36 loc) · 892 Bytes
/
Copy pathci.yml
File metadata and controls
47 lines (36 loc) · 892 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
42
43
44
45
46
47
name: CI
on:
push:
branches: [main, tests]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
test-build-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.24"
cache: true
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Run unit tests
run: go test -race -count=1 ./...
- name: Run go vet
run: go vet ./...
- name: Lint OpenAPI spec
run: npx --yes @redocly/cli lint docs/openapi.yaml
- name: Build
run: go build .
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.64.8
args: --config .golangci.yml