-
Notifications
You must be signed in to change notification settings - Fork 38
34 lines (34 loc) · 961 Bytes
/
ci.yaml
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
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@v3
- name: Workaround for dubious ownership issue
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Verify go.mod
run: go mod tidy && git diff --exit-code
build:
name: Build
runs-on: ubuntu-latest
container: docker.io/library/golang:latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Workaround for dubious ownership issue
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- 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@v3
- name: Tests
run: go test -v ./...