Skip to content

Commit

Permalink
chore: atlas via devbox
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilsol committed Oct 2, 2024
1 parent b43ef59 commit 11114f2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/generated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install atlas CLI
run: curl -sSf https://atlasgo.sh | sh
- uses: jetify-com/devbox-install-action@v0.11.0
with:
enable-cache: true

- name: Hash migrations
run: atlas migrate hash --dir "file://migrations/sql?format=golang-migrate"
run: devbox run migrate:hash

- name: Make sure all changes generated
run: atlas migrate diff ci_migration --dir "file://migrations/sql?format=golang-migrate" --to "ent://db/schema" --dev-url "docker://postgres/16/test?search_path=public"
run: echo 'ci_migration' | devbox run migrate:diff

- name: Ensure no changes
run: git diff --exit-code
Expand Down

0 comments on commit 11114f2

Please sign in to comment.