Skip to content

Commit

Permalink
Update action
Browse files Browse the repository at this point in the history
  • Loading branch information
yasuoza committed Nov 11, 2021
1 parent db6f715 commit 1299d45
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 30 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pr_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
- name: Get dependencies
run: go mod download

- name: go vet
run: go vet ./...
- name: lint
run: make lint

- name: go test
run: go test -v
run: make test
31 changes: 4 additions & 27 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: [1.17, 1.16, 1.15]
go: [1.17]
name: Test with Go version ${{ matrix.go }}
steps:
- uses: actions/setup-go@v2.1.4
Expand All @@ -23,31 +23,8 @@ jobs:
- name: Get dependencies
run: go mod download

- name: go vet
run: go vet ./...
- name: lint
run: make lint

- name: go test
run: go test -v -covermode=count -coverprofile=coverage.out

- name: Convert coverage to lcov
uses: jandelgado/gcov2lcov-action@v1.0.8
with:
infile: coverage.out
outfile: coverage.lcov
- name: Coveralls Parallel
uses: coverallsapp/github-action@1.1.3
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: coverage.lcov
flag-name: go-version-${{ matrix.go }}
parallel: true

finish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@1.1.3
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
run: make test

0 comments on commit 1299d45

Please sign in to comment.