Added basic "build" test for sanity
Some checks failed
build bin / Make sure build does not fail (push) Failing after 21s
Some checks failed
build bin / Make sure build does not fail (push) Failing after 21s
Signed-off-by: Sagi Dayan <sagidayan@gmail.com>
This commit is contained in:
parent
94ef458da7
commit
a5b5ce2e2f
2 changed files with 32 additions and 1 deletions
31
.forgejo/workflows/build.yml
Normal file
31
.forgejo/workflows/build.yml
Normal file
|
@ -0,0 +1,31 @@
|
|||
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: https://code.forgejo.org/actions/checkout@v4
|
||||
name: checkout
|
||||
- name: install alsa devel
|
||||
run: apt install libasound2-dev
|
||||
- uses: https://code.forgejo.org/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
|
||||
|
2
Makefile
2
Makefile
|
@ -24,7 +24,7 @@ test_coverage:
|
|||
go test ./... -coverprofile=coverage.out
|
||||
|
||||
dep:
|
||||
go mod download
|
||||
go mod vendor
|
||||
|
||||
vet:
|
||||
go vet
|
||||
|
|
Loading…
Reference in a new issue