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