diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 57a4a3600..0da442bfb 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -6,6 +6,7 @@ on: branches: - main pull_request: + jobs: test: name: Go Test @@ -13,9 +14,14 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v3 + - name: Setup asdf uses: asdf-vm/actions/setup@v1 + - name: Run unit tests - env: - COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: make go-test + + - name: Report Coveralls + uses: coverallsapp/github-action@v2 + with: + file: hack/release/coverage.out diff --git a/.go-tools b/.go-tools index a2c57be79..fda5d2f8b 100644 --- a/.go-tools +++ b/.go-tools @@ -1,4 +1,3 @@ github.com/caarlos0/svu@5b40c3113f8d7fd477f2410d8e14eaf835f3a76e -github.com/mattn/goveralls@602d73e9edb54427afabf600a676e4fcf09a2480 github.com/a8m/envsubst/cmd/envsubst@v1.4.2 github.com/itchyny/gojq/cmd/gojq@v0.12.13 diff --git a/make/go.mk b/make/go.mk index c3376fe0e..7cb249912 100644 --- a/make/go.mk +++ b/make/go.mk @@ -1,8 +1,7 @@ .PHONY: go-test go-test: go-lint -go-test: install-tool.golang install-tool.go.goveralls +go-test: install-tool.golang cd hack/release && go test -v -race -covermode=atomic -coverprofile=coverage.out ./... - cd hack/release && goveralls -coverprofile=coverage.out -service=github .PHONY: mod-tidy mod-tidy: install-tool.golang