Added basic "build" test for sanity

Signed-off-by: Sagi Dayan <sagidayan@gmail.com>
This commit is contained in:
Sagi Dayan 2024-12-15 11:22:46 +02:00
parent 94ef458da7
commit 00e86b1d5f
Signed by: sagi
GPG key ID: FAB96BFC63B46458
2 changed files with 30 additions and 1 deletions

View file

@ -0,0 +1,29 @@
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
name: checkout
- uses: actions/setup-go@v5
name: install go
with:
go-version-file: './go.mod'
- run: go version
name: Go version
- run: make dep
name: install dependencies
- run: make build
name: build app

View file

@ -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