From 99b74e6fc6ee80fd885c217425041cf1ab9daefe Mon Sep 17 00:00:00 2001 From: Beyond Date: Mon, 29 Nov 2021 14:37:35 +0800 Subject: [PATCH] add codecov.yml --- codecov.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 codecov.yml diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..9d38577 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,18 @@ +name: Test and coverage + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 2 + - uses: actions/setup-go@v2 + with: + go-version: '1.16' + - name: Run coverage + run: go test -race -coverprofile=coverage.txt -covermode=atomic + - name: Upload coverage to Codecov + run: bash <(curl -s https://codecov.io/bash)