Skip to content

Commit 6d1326d

Browse files
authored
Update GitHub Actions workflows. (#4923)
This PR was automatically generated by the update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt repo, from commit 87d055d9cb5d343b24a577da140f4eb258c2d6f6.
1 parent 3ccfd4c commit 6d1326d

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/prerequisites.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ jobs:
7979
run: make provider
8080
- name: Unit-test provider code
8181
run: make test_provider
82+
- name: Upload coverage reports to Codecov
83+
uses: codecov/codecov-action@c2fcb216de2b0348de0100baa3ea2cad9f100a01 # v5.1.0
84+
env:
85+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
8286
- if: inputs.is_pr
8387
name: Check Schema is Valid
8488
run: |

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,11 @@ test:
236236
.PHONY: test
237237

238238
test_provider:
239-
cd provider && go test -v -short ./... -parallel $(TESTPARALLELISM)
239+
cd provider && go test -v -short \
240+
-coverprofile="coverage.txt" \
241+
-coverpkg="./...,github.com/hashicorp/terraform-provider-..." \
242+
-parallel $(TESTPARALLELISM) \
243+
./...
240244
.PHONY: test_provider
241245

242246
tfgen: schema

0 commit comments

Comments
 (0)