test(k8s): fix naming + pn error in nightly tests (#2511) #6174
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test and coverage | |
on: | |
push: | |
pull_request: | |
merge_group: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.21' | |
- name: Run coverage | |
run: go test -v -timeout=2h -coverprofile=coverage.out -covermode=count ./... | |
env: | |
TF_ACC: 1 # It runs the integration test through the cassettes and not with real API calls | |
TF_TEST_DOMAIN: scaleway-terraform.com | |
TF_UPDATE_CASSETTES: false | |
TF_TEST_DOMAIN_ZONE: tf | |
SCW_ACCESS_KEY: "SCWXXXXXXXXXXXXXFAKE" | |
SCW_SECRET_KEY: "11111111-1111-1111-1111-111111111111" | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 |