From e93c4abba8f93c861eec5e5b30ce25e65cf899c5 Mon Sep 17 00:00:00 2001 From: Imbus <66123528+imbus64@users.noreply.github.com> Date: Sat, 2 Mar 2024 02:52:35 +0100 Subject: [PATCH 1/2] Create go.yml --- .github/workflows/go.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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..f6d518c --- /dev/null +++ b/.github/workflows/go.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: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.21' + + - name: Build + run: go build -v ./backend/... + + - name: Test + run: go test -v ./backend/... From b202665d75a7a553426480c4303152fc85588f1f Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Sat, 2 Mar 2024 02:56:00 +0100 Subject: [PATCH 2/2] Fix gh workflow --- .github/workflows/go.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index f6d518c..8c24059 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -22,7 +22,7 @@ jobs: go-version: '1.21' - name: Build - run: go build -v ./backend/... + run: go build -v ./... - name: Test - run: go test -v ./backend/... + run: go test -v ./...