fix(gitlab): make sure entire project path is shown (#392) #1183
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Testing Coverage | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: Test and Coverage | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "^1.15.5" | |
- name: Prepare coverage | |
run: mkdir coverage | |
- name: Test | |
run: SKIP_TYPES=time-dependent go test ./... -coverpkg=$( go list ./... | grep -v /tests | grep -v /tools | paste -sd "," -) -coverprofile coverage/coverage.out | |
- name: Coverage convert | |
uses: jandelgado/[email protected] | |
with: | |
infile: coverage/coverage.out | |
outfile: coverage/lcov.info | |
- name: Coveralls report | |
uses: coverallsapp/github-action@v2 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} |