name: Code Coverage on: pull_request: push: branches: [ master ] concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: tests: name: Code Coverage Tests runs-on: ubuntu-latest steps: - name: Check out repository uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 with: fetch-depth: 0 - name: Set up Go uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: go-version-file: 'go.mod' check-latest: true id: go - name: Run Tests run: make test-with-coverage - name: Upload Coverage uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0 with: files: coverage.txt - name: Upload Logs uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 with: name: logs path: .logs/**/*.log if-no-files-found: ignore if: ${{ always() }}