github.com/df-mc/dragonfly@v0.9.13/.github/workflows/pr.yml (about) 1 name: Build 2 on: [pull_request] 3 jobs: 4 5 build: 6 name: Build 7 runs-on: ubuntu-latest 8 steps: 9 10 - name: Check out code into the Go module directory 11 uses: actions/checkout@v3 12 13 - name: Set up Go 1.21 14 uses: actions/setup-go@v5 15 with: 16 go-version: 1.21 17 id: go 18 19 - name: Get dependencies 20 run: | 21 mkdir -p $GOPATH/bin 22 export PATH=$PATH:$GOPATH/bin 23 24 - name: Build 25 run: go build -o dragonfly_exe -v . 26 27 - name: Vet 28 run: go vet ./... 29 30 - name: Formatting 31 run: test -z $(go fmt ./...) 32 33 - name: Staticcheck 34 uses: dominikh/staticcheck-action@v1.3.0 35 with: 36 install-go: false