From 6734ddd5b96841248aec8b207d53e7af68738292 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.yml | 29 +++++++++++++++++++++++++++++ Makefile | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .forgejo/workflows/build.yml diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml new file mode 100644 index 0000000..a4811c5 --- /dev/null +++ b/.forgejo/workflows/build.yml @@ -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 + 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