From e0a5fdf971c010c96c8e98c8047149f02307690a Mon Sep 17 00:00:00 2001 From: Bengt Wegner Date: Mon, 16 Sep 2024 17:13:38 +0200 Subject: [PATCH 1/2] Chore: Create GH Actions go testing workflow Signed-off-by: Bengt Wegner --- .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..ebe7965 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,28 @@ +name: Test + +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.23' + + - name: Install dependencies + run: go get . + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./... From e819a2e63780e731b3888f8c801aa2b40de57dbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicklas=20K=C3=B6rtge?= Date: Tue, 17 Sep 2024 09:24:28 +0200 Subject: [PATCH 2/2] update action MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Nicklas Körtge --- .github/workflows/go.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index ebe7965..1e87fe0 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -1,5 +1,4 @@ name: Test - on: push: branches: [ "main" ] @@ -7,22 +6,17 @@ on: 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.23' - - name: Install dependencies run: go get . - - name: Build run: go build -v ./... - - name: Test run: go test -v ./...