There was an error while loading. Please reload this page.
1 parent be30ebf commit 7913d64Copy full SHA for 7913d64
1 file changed
.github/workflows/test.yml
@@ -38,6 +38,17 @@ jobs:
38
go mod tidy
39
git diff --exit-code -- go.mod go.sum
40
41
+ # Generate any possible migration from a schema change that way
42
+ # we can detect any migration file that has not been checked in to git
43
+ # This could happen if the developer ran make generate but didn't run make migration_new
44
+ - name: Generate migrations
45
+ if: ${{ matrix.app == 'controlplane' }}
46
+ run: |
47
+ wget -q https://release.ariga.io/atlas/atlas-linux-amd64-latest -O /tmp/atlas
48
+ sudo install /tmp/atlas /usr/local/bin/atlas
49
+
50
+ make -C app/controlplane migration_new
51
52
# Check that the generated ent code is up to date
53
# see https://entgo.io/docs/ci/
54
- uses: ent/contrib/ci@master
0 commit comments