Skip to content

Merge pull request #153 from AliyunContainerService/ants-v2 #54

Merge pull request #153 from AliyunContainerService/ants-v2

Merge pull request #153 from AliyunContainerService/ants-v2 #54

Workflow file for this run

name: codecov
on:
push:
branches:
- 'master'
pull_request:
branches:
- 'master'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.after }}
cancel-in-progress: true
jobs:
codecov:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/[email protected]
with:
go-version: 1.20.4
- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Test and update codecov
run: |
go test -race -coverprofile=coverage.txt -covermode=atomic ./...
- uses: codecov/[email protected]
with:
file: ./coverage.txt
flags: unittests
fail_ci_if_error: true