diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 5c09165..876461e 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -30,6 +30,7 @@ jobs: runs-on: ubuntu-latest env: CI: true + CODECOV steps: - name: Checkout repo uses: actions/checkout@v2 @@ -39,6 +40,11 @@ jobs: args: | make prepare; make test CI_RUN=${CI} + - name: Codecov integration + uses: codecov/codecov-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.txt release: name: Create Release diff --git a/.gitignore b/.gitignore index 7fb141f..b66e23c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ *.out -*.test \ No newline at end of file +*.test +coverage.txt \ No newline at end of file diff --git a/Makefile b/Makefile index b321153..ee7222a 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ prepare: test: gocritic check - go test $(ADDITIONAL_BUILD_FLAGS) -v -coverprofile cover.out -memprofile mem.out + go test -race $(ADDITIONAL_BUILD_FLAGS) -v -coverprofile coverage.txt -covermode=atomic lint: go fmt \ No newline at end of file