Skip to content

Commit

Permalink
run unit tests on push (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghouscht authored Jun 26, 2020
1 parent 19b5c13 commit 4ecb100
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
---
name: ci
on:
push:
pull_request:
jobs:
goreleaser:
go-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup Go
uses: actions/setup-go@v1
with:
go-version: 1.14
- name: GoReleaser
uses: goreleaser/goreleaser-action@v1
with:
version: latest
args: release --snapshot --rm-dist
uses: actions/setup-go@v2
- run: go version
- run: go test -cover ./...
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: release
on:
push:
Expand All @@ -10,9 +11,9 @@ jobs:
- name: Checkout
uses: actions/checkout@master
- name: Setup Go
uses: actions/setup-go@v1
with:
go-version: 1.14
uses: actions/setup-go@v2
- run: go version
- run: go test -cover ./...
- name: GoReleaser
uses: goreleaser/goreleaser-action@v1
with:
Expand Down

0 comments on commit 4ecb100

Please sign in to comment.