Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test codecov token #129

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,16 @@ on:

jobs:
test:
uses: pion/.goassets/.github/workflows/test.reusable.yml@master
uses: pion/.goassets/.github/workflows/test.reusable.yml@codecov-token-test
strategy:
matrix:
go: ["1.22", "1.21"] # auto-update/supported-go-version-list
fail-fast: false
with:
go-version: ${{ matrix.go }}
codecov-token: ${{ env.CODECOV_TOKEN }}

test-i386:
uses: pion/.goassets/.github/workflows/test-i386.reusable.yml@master
uses: pion/.goassets/.github/workflows/test-i386.reusable.yml@codecov-token-test
strategy:
matrix:
go: ["1.22", "1.21"] # auto-update/supported-go-version-list
Expand All @@ -39,7 +38,6 @@ jobs:
go-version: ${{ matrix.go }}

test-wasm:
uses: pion/.goassets/.github/workflows/test-wasm.reusable.yml@master
uses: pion/.goassets/.github/workflows/test-wasm.reusable.yml@codecov-token-test
with:
go-version: "1.22" # auto-update/latest-go-version
codecov-token: ${{ env.CODECOV_TOKEN }}
11 changes: 11 additions & 0 deletions dummy.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,14 @@
type PublicAPI struct {
PublicMember int
}

func (p *PublicAPI) PublicFunc() {

Check warning on line 21 in dummy.go

View workflow job for this annotation

GitHub Actions / lint / Go

exported: exported method PublicAPI.PublicFunc should have comment or be unexported (revive)
println("Running PublicAPI.PublicFunc")

Check failure on line 22 in dummy.go

View workflow job for this annotation

GitHub Actions / lint / Go

use of `println` forbidden by pattern `^print(ln)?$` (forbidigo)
println("PublicAPI.PublicMember: ", p.PublicMember)

Check failure on line 23 in dummy.go

View workflow job for this annotation

GitHub Actions / lint / Go

use of `println` forbidden by pattern `^print(ln)?$` (forbidigo)
if p.PublicMember == 1 {
println("PublicAPI.PublicMember is one")

Check failure on line 25 in dummy.go

View workflow job for this annotation

GitHub Actions / lint / Go

use of `println` forbidden by pattern `^print(ln)?$` (forbidigo)

Check warning on line 25 in dummy.go

View check run for this annotation

Codecov / codecov/patch

dummy.go#L25

Added line #L25 was not covered by tests
}
if p.PublicMember != 1 {
println("PublicAPI.PublicMember is not one")
}
}
2 changes: 2 additions & 0 deletions dummy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ import (
)

func TestDummy(*testing.T) {
p := &PublicAPI{}
p.PublicFunc()
}
Loading