-
Notifications
You must be signed in to change notification settings - Fork 6
36 lines (34 loc) · 849 Bytes
/
pr.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
35
36
name: Pull Request
on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
arch: [ linux/amd64, linux/arm64 ]
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '>=1.21.0'
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Go Format
run: make fmt && git diff --exit-code
- name: Go Vet
run: make vet
- name: Go Tidy
run: go mod tidy && git diff --exit-code
- name: Go Mod
run: go mod download
- name: Go Mod Verify
run: go mod verify
- name: Go Test
run: make test
- name: Build Docker
uses: docker/build-push-action@v5
with:
push: false