chore: build with gorelease in the pr (#5)

This commit is contained in:
Rick 2023-03-05 20:16:03 +08:00 committed by GitHub
parent da2952e1bf
commit d07c7f2a99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 3 deletions

View File

@ -1,11 +1,11 @@
name: Coverage Report
name: Build
on:
- push
- pull_request
jobs:
TestAndReport:
Test:
runs-on: ubuntu-20.04
steps:
- name: Set up Go
@ -21,3 +21,18 @@ jobs:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
run: |
bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r coverage.out --force-coverage-parser go
Build:
runs-on: ubuntu-20.04
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18.x
- uses: actions/checkout@v3.0.0
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4.1.1
with:
github_token: ${{ secrets.GH_PUBLISH_SECRETS }}
version: v1.14.0
args: release --skip-publish --rm-dist --snapshot

View File

@ -8,7 +8,6 @@ builds:
- env:
- CGO_ENABLED=0
binary: atest
dir: cmd
goos:
- linux
- windows

View File