From 865d41b7ecfb06c80c103b6779b839a1853a781a Mon Sep 17 00:00:00 2001 From: Jaime Pillora Date: Mon, 15 Aug 2022 10:06:53 +1000 Subject: [PATCH] switch to single job --- .github/workflows/ci.yml | 29 +++-------------------------- 1 file changed, 3 insertions(+), 26 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9ac493c..f595e19 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,11 +7,8 @@ on: workflow_dispatch: inputs: {} jobs: - # ================ - # TEST JOB - # ================ - test: - name: Test + ci: + name: CI runs-on: ubuntu-latest steps: - name: Checkout @@ -30,28 +27,8 @@ jobs: run: go build -v . - name: Test run: go test -v ./... - # ================ - # RELEASE JOB - # runs after a success test - # only runs on push "v*" tag - # ================ - release: - name: Release - needs: test - if: startsWith(github.ref, 'refs/tags/v') - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Set up Go - uses: actions/setup-go@v3 - with: - go-version: '1.18' - check-latest: true - cache: true - name: Run GoReleaser + if: startsWith(github.ref, 'refs/tags/v') uses: goreleaser/goreleaser-action@v3 with: distribution: goreleaser