diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b391d0a..ebc1d11 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -12,6 +12,7 @@ on: jobs: lint: + name: Lint runs-on: ubuntu-latest steps: - name: Checkout Repository @@ -29,6 +30,7 @@ jobs: task lint build: + name: Build needs: [lint] runs-on: ubuntu-latest permissions: @@ -51,7 +53,8 @@ jobs: file_pattern: "bin/*" test: - needs: [lint] + name: Test + needs: [lint, build] runs-on: ubuntu-latest permissions: contents: write @@ -73,7 +76,8 @@ jobs: run: | ACTION_VERSION=${{ github.head_ref }} task gen-tests - - uses: stefanzweifel/git-auto-commit-action@v5 + - name: Commit generated tests + uses: stefanzweifel/git-auto-commit-action@v5 if: github.event_name == 'pull_request' with: commit_message: "[skip ci] Update tests" @@ -92,6 +96,7 @@ jobs: wait_workflow: true - name: Delete branch + if: always() run: | echo "Deleting branch ${{ steps.generate_branch.outputs.branch }}..." git push origin --delete ${{ steps.generate_branch.outputs.branch }} diff --git a/.task/checksum/build b/.task/checksum/build new file mode 100644 index 0000000..d306fd2 --- /dev/null +++ b/.task/checksum/build @@ -0,0 +1 @@ +90d25729e1f7ca52ae1ce10d633ebc69 diff --git a/Taskfile.yaml b/Taskfile.yaml index 6f32073..b0b5991 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -50,10 +50,15 @@ tasks: <<: *go-docker internal: false desc: Build the application - env: - GOOS: "{{OS}}" - GOARCH: "{{ARCH}}" + sources: + - "*.go" + - "go.mod" + - "go.sum" + generates: + - "bin/{{ .GIT_REPO_NAME }}-{{ .GOOS }}-{{ .GOARCH }}" vars: + GOOS: "{{ .GOOS | default OS }}" + GOARCH: "{{ .GOARCH | default ARCH}}" COMMAND: go build -o bin/{{ .GIT_REPO_NAME }}-{{ .GOOS }}-{{ .GOARCH }} *.go {{ .CLI_ARGS }} gen-tests: diff --git a/bin/gha-docker-image-exists-linux-amd64 b/bin/gha-docker-image-exists-linux-amd64 index 34780c1..5534de3 100755 Binary files a/bin/gha-docker-image-exists-linux-amd64 and b/bin/gha-docker-image-exists-linux-amd64 differ diff --git a/bin/gha-docker-image-exists-linux-arm64 b/bin/gha-docker-image-exists-linux-arm64 index 43c5a2e..f2f9e79 100755 Binary files a/bin/gha-docker-image-exists-linux-arm64 and b/bin/gha-docker-image-exists-linux-arm64 differ