From f8ef48e57a1b565e746b2db2435d2c4a7ab6c31b Mon Sep 17 00:00:00 2001 From: DataHearth Date: Mon, 17 Jul 2023 23:42:21 +0200 Subject: [PATCH] chore(ci): update build workflow with latest go version --- .gitea/workflows/build.yml | 12 ++++++++++-- .gitea/workflows/release.yml | 23 ++++++++++++++++++++++- 2 files changed, 32 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index fe5baf1..989b9fc 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -1,10 +1,18 @@ name: build -on: push +run-name: Build and test + +on: + push: + branches: + - "*" jobs: build: + name: Build and test + runs-on: ubuntu-latest + steps: - name: Checkout uses: actions/checkout@v3 @@ -12,7 +20,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v4 with: - go-version: 1.17 + go-version: 1.20 - name: Build run: go build -v ./... \ No newline at end of file diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index e19bded..5ab1350 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -6,8 +6,29 @@ on: - "v*.*.*" jobs: - release: + build: + name: Build and test + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup Go + uses: actions/setup-go@v4 + with: + go-version: 1.20 + + - name: Build + run: go build -v ./... + + release: + name: Release + + needs: build + runs-on: ubuntu-latest + steps: - name: Checkout uses: actions/checkout@v3