Skip to content

Commit d5012b4

Browse files
authored
chore: use mock data for tf test (#65)
* refactor: change dev to test * chore: fix test * chore: use mock data for tf test
1 parent f429e74 commit d5012b4

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/tests.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,14 @@ jobs:
4444
go-version: 1.19
4545
- uses: hashicorp/setup-terraform@v2
4646
with:
47-
terraform_version: '1.3.*'
47+
terraform_version: "1.3.*"
4848
terraform_wrapper: false
4949
- run: |
5050
go generate ./...
5151
go test -v -cover ./...
5252
env:
53-
TF_ACC: '1'
54-
BYTEBASE_SERVICE_ACCOUNT: 'terraform@service.bytebase.com'
55-
BYTEBASE_SERVICE_KEY: ${{ secrets.BTYEBASE_SERVICE_KEY }}
56-
BYTEBASE_URL: 'https://tf.bytebase.com'
53+
TF_ACC: "1"
54+
# Test uses mock service, and any value should work
55+
BYTEBASE_SERVICE_ACCOUNT: "terraform@service.bytebase.com"
56+
BYTEBASE_SERVICE_KEY: "12345"
57+
BYTEBASE_URL: "https://bytebase.example.com"

0 commit comments

Comments
 (0)