diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 12881f2..ac3eeae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,21 +32,3 @@ jobs: version: v1.52 - name: Check generated code run: make generate - - test: - runs-on: ubuntu-latest - env: - GOPATH: /home/runner/go - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - submodules: recursive - - name: Setup Go - uses: actions/setup-go@v5 - with: - go-version: 1.19 - - name: Test - run: make test - - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v4 diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 0000000..4d5ea3a --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,35 @@ +name: Test and Coverage + +on: + pull_request: + types: + - opened + - synchronize + paths-ignore: + - README.md + - .gitignore + push: + branches: + - main + merge_group: + +jobs: + coverage: + runs-on: ubuntu-latest + env: + GOPATH: /home/runner/go + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: recursive + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version: 1.19 + - name: Generate coverage report + run: make test + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }}