Skip to content

Commit 11114f2

Browse files
committed
chore: atlas via devbox
1 parent b43ef59 commit 11114f2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/generated.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v4
1212

13-
- name: Install atlas CLI
14-
run: curl -sSf https://atlasgo.sh | sh
13+
- uses: jetify-com/[email protected]
14+
with:
15+
enable-cache: true
1516

1617
- name: Hash migrations
17-
run: atlas migrate hash --dir "file://migrations/sql?format=golang-migrate"
18+
run: devbox run migrate:hash
1819

1920
- name: Make sure all changes generated
20-
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"
21+
run: echo 'ci_migration' | devbox run migrate:diff
2122

2223
- name: Ensure no changes
2324
run: git diff --exit-code

0 commit comments

Comments
 (0)