Skip to content

Commit

Permalink
add readme job -fix
Browse files Browse the repository at this point in the history
  • Loading branch information
t34-dev committed Aug 2, 2024
1 parent f40a268 commit c68e1e0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,29 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'

- name: Cache Go modules
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Download dependencies
run: go mod download

- name: Install goveralls
run: go install github.com/mattn/goveralls@latest

- name: Run tests
run: go test -v -coverprofile=coverage.out $(go list ./... | grep -v /example)

- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
Expand Down

0 comments on commit c68e1e0

Please sign in to comment.