Skip to content

Commit cf6e649

Browse files
committed
.github: add test for the standalone in the ci
1 parent dd6722e commit cf6e649

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/ci.yaml

+14-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,20 @@ jobs:
5252
- name: Run Test as Standalone
5353
working-directory: ./${{ matrix.language }}/testdata
5454
run: |
55-
atlas migrate diff --env typeorm --var dialect=${{ matrix.dialect }}
55+
atlas migrate diff --env typeorm -c "file://atlas-standalone.hcl" --var dialect=${{ matrix.dialect }}
56+
- name: Verify migrations generated
57+
run: |
58+
status=$(git status --porcelain)
59+
if [ -n "$status" ]; then
60+
echo "you need to run 'atlas migrate diff --env typeorm' and commit the changes"
61+
echo "$status"
62+
git --no-pager diff
63+
exit 1
64+
fi
65+
- name: Run Test as ${{ matrix.language }} Script
66+
working-directory: ./${{ matrix.language }}/testdata
67+
run: |
68+
atlas migrate diff --env typeorm -c "file://atlas-script.hcl" --var dialect=${{ matrix.dialect }}
5669
- name: Verify migrations generated
5770
run: |
5871
status=$(git status --porcelain)

0 commit comments

Comments
 (0)