Skip to content
Merged
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
11 changes: 11 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@ jobs:
go mod tidy
git diff --exit-code -- go.mod go.sum

# Generate any possible migration from a schema change that way
# we can detect any migration file that has not been checked in to git
# This could happen if the developer ran make generate but didn't run make migration_new
- name: Generate migrations
if: ${{ matrix.app == 'controlplane' }}
run: |
wget -q https://release.ariga.io/atlas/atlas-linux-amd64-latest -O /tmp/atlas
sudo install /tmp/atlas /usr/local/bin/atlas

make -C app/controlplane migration_new

# Check that the generated ent code is up to date
# see https://entgo.io/docs/ci/
- uses: ent/contrib/ci@master
Expand Down