forked from df-mc/dragonfly
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (28 loc) · 719 Bytes
/
Copy pathpr.yml
File metadata and controls
36 lines (28 loc) · 719 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
name: Build
on: [pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Set up Go 1.24
uses: actions/setup-go@v5
with:
go-version: 1.24
id: go
- name: Get dependencies
run: |
mkdir -p $GOPATH/bin
export PATH=$PATH:$GOPATH/bin
- name: Build
run: go build -o dragonfly_exe -v .
- name: Vet
run: go vet ./...
- name: Formatting
run: test -z $(go fmt ./...)
- name: Staticcheck
uses: dominikh/staticcheck-action@v1
with:
install-go: false