From b1939a3a7adbc60f5f8ecc6a62757921b84cb0cb Mon Sep 17 00:00:00 2001 From: Millefeuille Date: Tue, 26 Mar 2024 13:26:55 +0100 Subject: [PATCH] Added go compilation workflow --- .github/workflows/go.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..d0a70f3 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,25 @@ +name: Go + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + + build: + runs-on: ubuntu-latest + container: + image: golang:1.20-alpine + steps: + - uses: actions/checkout@v3 + + - name: Build cmd/api + run: go build -v ./cmd/api + + - name: Build cmd/bot + run: go build -v ./cmd/bot + + - name: Build cmd/updater + run: go build -v ./cmd/updater