Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

fixed migration test #203

Merged
merged 2 commits into from
Oct 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 1 addition & 21 deletions .github/workflows/test_migration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,29 +72,9 @@ jobs:
env:
OS: Linux

- name: Check out code into the initial migration tag
run: |
git fetch origin -p
git checkout "refs/tags/v0.5.7"
git checkout origin/main client/testdata/default.hcl

- name: Get dependencies
run: |
go get -v -t -d ./...

- name: Build
run: go build -v .

- name: Build initial schema
run: |
rm -rf .cq_reattach
CQ_PROVIDER_DEBUG=1 go run main.go & while [ ! -f .cq_reattach ]; do sleep 1; done && \
./cloudquery provider build-schema aws --config ./client/testdata/default.hcl --enable-console-log
env:
CQ_REATTACH_PROVIDERS: .cq_reattach

- name: Check out code into the initial migration tag
run: git checkout main
./cloudquery provider build-schema aws --config ./client/testdata/initial_migration.hcl --enable-console-log

- name: Get dependencies
run: |
Expand Down
19 changes: 19 additions & 0 deletions client/testdata/initial_migration.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
cloudquery {
plugin_directory = "./cq/providers"
policy_directory = "./cq/policies"

provider "aws" {
source = "cloudquery/cq-provider-aws"
version = "v0.5.7"
}

connection {
dsn = "host=localhost user=postgres password=pass database=postgres port=5432 sslmode=disable"
}
}

provider "aws" {
configuration {}
resources = [
"*"]
}