diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index db65d8fd7..a172fea82 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -35,14 +35,23 @@ jobs: - name: Checkout Git Repository uses: actions/checkout@v3 - - name: Unit Tests with Code Coverage + - name: Run Go Tests + run: make test + + - name: Check format run: | - make test + if [[ $(go fmt `go list ./... | grep -v vendor`) ]]; then + echo "not well formatted sources are found" + exit 1 + fi - - name: Upload Code Coverage Report - uses: codecov/codecov-action@v3 + - name: Generate coverage report + run: | + go test `go list ./... | grep -v examples` -coverprofile=coverage.txt -covermode=atomic + + - name: Upload coverage report + uses: codecov/codecov-action@v1 with: - token: ${{ secrets.CODECOV_TOKEN }} - file: cover.out - verbose: true - fail_ci_if_error: true + file: ./coverage.txt + flags: unittests + name: codecov-umbrella