-
Notifications
You must be signed in to change notification settings - Fork 172
33 lines (26 loc) · 748 Bytes
/
Copy pathgo.yml
File metadata and controls
33 lines (26 loc) · 748 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
name: Go
on: [push, pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v7
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: Get dependencies
run: |
mkdir -p $GOPATH/bin
export PATH=$PATH:$GOPATH/bin
- name: Vet
run: go vet ./...
- name: Staticcheck
run: |
go get honnef.co/go/tools/cmd/staticcheck@v0.6.1
GOBIN=$PWD/bin go install honnef.co/go/tools/cmd/staticcheck@v0.6.1
./bin/staticcheck ./...
- name: Build
run: go build -o gophertunnel_exe -v .