From 4bfda4333b3ae44a4619f6ff046326e412c580b9 Mon Sep 17 00:00:00 2001 From: Sagi Dayan Date: Sun, 15 Dec 2024 11:22:46 +0200 Subject: [PATCH] Added basic "build" test for sanity Signed-off-by: Sagi Dayan --- .forgejo/workflows/build.yaml | 24 ++++++++++++++++++++++++ Makefile | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .forgejo/workflows/build.yaml diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml new file mode 100644 index 0000000..50462b8 --- /dev/null +++ b/.forgejo/workflows/build.yaml @@ -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 + diff --git a/Makefile b/Makefile index 9a411f3..f650fe2 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,7 @@ test_coverage: go test ./... -coverprofile=coverage.out dep: - go mod download + go mod vendor vet: go vet