fix: nil deref for postgres transfer endpoint #179
Workflow file for this run
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: Tests | |
on: [pull_request] | |
jobs: | |
test: | |
name: test | |
runs-on: ubuntu-latest | |
timeout-minutes: 125 | |
concurrency: | |
group: ci-acc-tests | |
cancel-in-progress: false | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version-file: 'go.mod' | |
- run: go mod download | |
- run: go mod vendor | |
- run: go build -v ./... | |
- name: check docs generated | |
run: | | |
go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs generate | |
git diff docs | |
test -z "$(git diff docs)" | |
- uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.54.2 | |
args: --timeout=10m | |
- name: run acceptance tests | |
run: | | |
echo $DC_KEY > authorized_key.json | |
export DC_AUTHKEY=$(pwd)/authorized_key.json | |
go test ./... -v -timeout 120m | |
env: | |
TF_LOG: WARN | |
TF_ACC: 1 | |
DC_KEY: ${{ secrets.TF_ACC_AUTHKEY }} | |
DC_PROJECT_ID: ${{ secrets.TF_ACC_PROJECT_ID }} | |
DC_NETWORK_ID: ${{ secrets.TF_ACC_NETWORK_ID }} | |
DC_CLICKHOUSE_NAME: ${{ secrets.TF_ACC_CLICKHOUSE_NAME }} | |
DC_KAFKA_NAME: ${{ secrets.TF_ACC_KAFKA_NAME }} | |
DC_NETWORK_NAME: ${{ secrets.TF_ACC_NETWORK_NAME }} | |
DC_TRANSFER_NAME: ${{ secrets.TF_ACC_TRANSFER_NAME }} |