From d9ba3867f99197f403d0ffe2a94fd36ba7f3a6c7 Mon Sep 17 00:00:00 2001 From: MatteoSchiff Date: Wed, 13 Mar 2024 12:44:35 +0100 Subject: [PATCH] workflows: Add build workflow --- .gitea/workflows/build.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .gitea/workflows/build.yaml diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..4938de6 --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,26 @@ +name: Build artifact +run-name: Build from ${{ gitea.actor }} 🚀 +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.21 + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./... + + - name: Upload artifact + uses: actions/upload-artifact@v2.2.3 + with: + name: InnkeeperBot + path: ./InnkeeperBot \ No newline at end of file