-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (39 loc) · 912 Bytes
/
ci.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
name: CI
on: [pull_request]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
container: docker.io/library/golang:latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Verify go.mod
run: go mod tidy
# - name: Run lint
# run: make lint
build:
name: Build
runs-on: ubuntu-latest
container: docker.io/library/golang:latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Setup Go environment
uses: actions/[email protected]
with:
go-version-file: 'go.mod'
- name: Go Build
run: make build
tests:
name: Tests
runs-on: ubuntu-latest
container: docker.io/library/golang:latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Tests
run: make test