From 5d315c0f3e79cb98843d363937ba15f2d5f59d5b Mon Sep 17 00:00:00 2001 From: Kilian Ciuffolo <385716+kilianc@users.noreply.github.com> Date: Mon, 20 May 2024 00:22:10 -0700 Subject: [PATCH 1/2] chore: check coverage at PR time --- .github/workflows/main.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 7ba8526..b580da0 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -18,6 +18,8 @@ jobs: with: go-version: ${{ matrix.go }} - name: Run Tests... - run: go test -v -vet=off -race ./... + run: go test -v -vet=off -race -coverprofile=cover.out ./... + - name: Go Beautiful HTML Coverage + uses: 'gha-common/go-beautiful-html-coverage@v1' - name: Build... - run: go build -race cmd/killgrave/main.go \ No newline at end of file + run: go build -race cmd/killgrave/main.go From 41c3b1f2830cf4df2baa5d722169edbcbf1abe58 Mon Sep 17 00:00:00 2001 From: Kilian Ciuffolo <385716+kilianc@users.noreply.github.com> Date: Mon, 20 May 2024 00:23:54 -0700 Subject: [PATCH 2/2] Update .github/workflows/main.yaml --- .github/workflows/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index b580da0..12f42a8 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -20,6 +20,6 @@ jobs: - name: Run Tests... run: go test -v -vet=off -race -coverprofile=cover.out ./... - name: Go Beautiful HTML Coverage - uses: 'gha-common/go-beautiful-html-coverage@v1' + uses: gha-common/go-beautiful-html-coverage@v1 - name: Build... run: go build -race cmd/killgrave/main.go