From ba1677382d2f9595b7cce189bf16b6e5b1826d4b Mon Sep 17 00:00:00 2001 From: Alex Wellnitz Date: Tue, 25 Mar 2025 22:25:31 +0100 Subject: [PATCH] ci: Added golang workflow for building and testing project --- .gitea/workflows/build-and-test.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .gitea/workflows/build-and-test.yml diff --git a/.gitea/workflows/build-and-test.yml b/.gitea/workflows/build-and-test.yml new file mode 100644 index 0000000..7348d25 --- /dev/null +++ b/.gitea/workflows/build-and-test.yml @@ -0,0 +1,28 @@ +# This workflow will build a golang project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go + +name: Go + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.22' + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./... \ No newline at end of file