Merge pull request #78 from goccy/feature/measure-coverage

Measure coverage
This commit is contained in:
Masaaki Goshima 2020-12-30 18:17:46 +09:00 committed by GitHub
commit af6922cd2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 2 deletions

View File

@ -1,7 +1,7 @@
name: Go
on: [push, pull_request]
jobs:
build:
test:
name: Test
strategy:
matrix:
@ -13,7 +13,6 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
@ -28,3 +27,18 @@ jobs:
# - name: Test with race detector
# run: go test -v -race ./ -count=1
coverage:
name: Coverage
runs-on: ubuntu-latest
steps:
- name: setup Go
uses: actions/setup-go@v2
with:
go-version: 1.15
- name: checkout
uses: actions/checkout@v2
- name: measure coverage
run: go test -v -coverprofile=coverage.out ./ -count=1
- name: report coverage
run: |
bash <(curl -s https://codecov.io/bash)