-
-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (30 loc) · 725 Bytes
/
code_check.yml
File metadata and controls
39 lines (30 loc) · 725 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 check and test
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
run:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5.0.0
with:
go-version: '1.23'
- name: Get dependencies
run: go mod download
- name: Go Mod Verify
run: go mod verify
- name: Go Format
run: go fmt ./... && git diff --exit-code
- name: Go Vet
run: go vet ./...
- name: Go Tidy
run: |
go mod tidy && git diff --exit-code
- name: Go Test
run: go test -race -shuffle=on ./...