Skip to content

Commit

Permalink
workflow adjustments (#153)
Browse files Browse the repository at this point in the history
* added goreleaser workflow

* re-enabled coverage
  • Loading branch information
sha1n authored Sep 21, 2021
1 parent e377f1c commit c92f937
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 10 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/go-releaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: GoReleaser

on:
release:
types:
- created
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21 changes: 11 additions & 10 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Go
name: CI

on:
push:
Expand All @@ -17,17 +17,18 @@ jobs:
with:
go-version: 1.17

- name: Build
run: make lint build

- name: Test
run: |
go test -v -covermode=count -coverprofile=coverage.out ./...
# - name: Coverage
# uses: jandelgado/[email protected]
# - name: Coveralls
# uses: coverallsapp/[email protected]
# with:
# github-token: ${{ secrets.github_token }}
# path-to-lcov: coverage.lcov
- name: Coverage
uses: jandelgado/[email protected]

- name: Build
run: make lint build
- name: Coveralls
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: coverage.lcov

0 comments on commit c92f937

Please sign in to comment.