Skip to content

Commit

Permalink
publish always coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
jkralik committed Dec 1, 2021
1 parent 5dbab65 commit 269fc41
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 59 deletions.
57 changes: 0 additions & 57 deletions .github/workflows/main.yml

This file was deleted.

8 changes: 6 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Test

# Controls when the action will run.
on:
pull_request:
push:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand Down Expand Up @@ -33,4 +33,8 @@ jobs:

# Runs a single command using the runners shell, -p1 for `race: limit on 8128 simultaneously alive goroutines is exceeded, dying` at macos
- name: Run a test
run: go test -race -p 1 ./... -coverpkg=./... -covermode=atomic -coverprofile=./coverage.txt
run: go test -v -race -p 1 ./... -coverpkg=./... -covermode=atomic -coverprofile=./coverage.txt

- name: Publish the coverage
if: ${{ matrix.os }} == 'ubuntu-latest'
run: bash <(curl -s https://codecov.io/bash)

0 comments on commit 269fc41

Please sign in to comment.