mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-07 15:31:23 +08:00
change: replace with codecov-action
This commit is contained in:
11
.github/workflows/main.yml
vendored
11
.github/workflows/main.yml
vendored
@@ -30,6 +30,11 @@ jobs:
|
|||||||
- name: Run coverage
|
- name: Run coverage
|
||||||
run: go test -race -coverprofile="cover.out" -covermode=atomic ./...
|
run: go test -race -coverprofile="cover.out" -covermode=atomic ./...
|
||||||
- name: Upload coverage to Codecov
|
- name: Upload coverage to Codecov
|
||||||
if: success()
|
uses: codecov/codecov-action@v2
|
||||||
run: curl -s https://codecov.io/bash | bash
|
with:
|
||||||
shell: bash
|
name: httpboomer # User defined upload name. Visible in Codecov UI
|
||||||
|
token: ${{ secrets.CODECOV_TOKEN }} # Repository upload token
|
||||||
|
file: ./cover.out # Path to coverage file to upload
|
||||||
|
flags: unittests # Flag upload to group coverage metrics
|
||||||
|
fail_ci_if_error: true # Specify whether or not CI build should fail if Codecov runs into an error during upload
|
||||||
|
verbose: true
|
||||||
|
|||||||
Reference in New Issue
Block a user