Added basic "build" test for sanity #7
2 changed files with 25 additions and 1 deletions
24
.forgejo/workflows/build.yml
Normal file
24
.forgejo/workflows/build.yml
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
name: build bin
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
pull_request:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Make sure build does not fail
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version-file: './go.mod'
|
||||||
|
- run: go version
|
||||||
|
- run: make dep
|
||||||
|
- run: make build
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -24,7 +24,7 @@ test_coverage:
|
||||||
go test ./... -coverprofile=coverage.out
|
go test ./... -coverprofile=coverage.out
|
||||||
|
|
||||||
dep:
|
dep:
|
||||||
go mod download
|
go mod vendor
|
||||||
|
|
||||||
vet:
|
vet:
|
||||||
go vet
|
go vet
|
||||||
|
|
Loading…
Reference in a new issue