Skip to content

Commit

Permalink
fix: use shogo82148/actions-goverall to upload
Browse files Browse the repository at this point in the history
  • Loading branch information
SalladinBalwer committed Aug 17, 2023
1 parent 37c2329 commit b0408e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
18 changes: 1 addition & 17 deletions .github/actions/vet-test/action.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
name: Vet & Test
description: Vet and test package

inputs:
coverall-token:
description: Token for uploading coverall report
required: true

runs:
using: composite
steps:
Expand All @@ -15,15 +10,4 @@ runs:

- name: Test
shell: bash
run: |
go test -race -covermode atomic -coverprofile=covprofile ./...
- name: Install goveralls
shell: bash
run: go install github.com/mattn/goveralls@latest

- name: Send coverage
shell: bash
env:
COVERALLS_TOKEN: ${{ inputs.coverall-token }}
run: goveralls -coverprofile=covprofile -service=github
run: go test -v -coverprofile=profile.cov ./...
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ jobs:

- name: Test and vet application
uses: ./.github/actions/vet-test

- uses: shogo82148/actions-goveralls@v1
with:
coverall-token: ${{ secrets.GITHUB_TOKEN }}
path-to-profile: profile.cov

# release:
# runs-on: ubuntu-latest
Expand Down

0 comments on commit b0408e4

Please sign in to comment.