Revert "chore: add test coverage report (#25891)"
This reverts commit 98c096450e.
This commit is contained in:
parent
8b608b368f
commit
b9e89ca588
2 changed files with 1 additions and 30 deletions
29
.github/workflows/default.yml
vendored
29
.github/workflows/default.yml
vendored
|
|
@ -117,13 +117,6 @@ jobs:
|
|||
- name: Test
|
||||
run: mkdir dist && touch dist/empty && make test
|
||||
|
||||
- uses: actions/upload-artifact@v5
|
||||
if: ${{ !cancelled() }}
|
||||
with:
|
||||
name: code-coverage-${{ github.sha }}
|
||||
path: coverage.out
|
||||
retention-days: 14
|
||||
|
||||
lint:
|
||||
name: Lint
|
||||
runs-on: depot-ubuntu-24.04-arm
|
||||
|
|
@ -279,25 +272,3 @@ jobs:
|
|||
name: playwright-report
|
||||
path: playwright-report/
|
||||
retention-days: 14
|
||||
|
||||
code_coverage:
|
||||
name: "Code coverage report"
|
||||
if: github.event_name == 'pull_request' # Do not run when workflow is triggered by push to main branch
|
||||
runs-on: ubuntu-latest
|
||||
needs: [ test ]
|
||||
continue-on-error: true # not critical
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
actions: read
|
||||
pull-requests: write # write permission needed to comment on PR
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- uses: fgrosse/go-coverage-report@v1.1.1
|
||||
with:
|
||||
coverage-artifact-name: code-coverage-${{ github.sha }}
|
||||
coverage-file-name: coverage.out
|
||||
|
|
|
|||
2
Makefile
2
Makefile
|
|
@ -80,7 +80,7 @@ test-ui::
|
|||
|
||||
test::
|
||||
@echo "Running testsuite"
|
||||
CGO_ENABLED=0 go test $(BUILD_TAGS) -coverprofile=coverage.out -covermode=atomic ./...
|
||||
CGO_ENABLED=0 go test $(BUILD_TAGS) ./...
|
||||
|
||||
porcelain::
|
||||
gofmt -w -l $$(find . -name '*.go')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue