Skip to content

fix: ensure that a GetNamespace is used to ensure that a namespace is… #8356

fix: ensure that a GetNamespace is used to ensure that a namespace is…

fix: ensure that a GetNamespace is used to ensure that a namespace is… #8356

Workflow file for this run

name: Test and coverage
on:
push:
pull_request:
merge_group:
jobs:
build:
runs-on: ubuntu-latest
steps:
# Checkout should always be before setup-go to ensure caching is working
- uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: actions/setup-go@v5
with:
go-version: '1.22'
- 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@v5