Skip to content

Commit 60de522

Browse files
committed
test: sqlite migration
1 parent 04958c1 commit 60de522

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/dev.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,34 @@ jobs:
225225
run: |
226226
chmod +x ./semaphore && ./semaphore migrate --config config.json
227227
228+
migrate-sqlite:
229+
runs-on: ubuntu-latest
230+
231+
needs:
232+
- build-local
233+
234+
steps:
235+
- name: Download artifacts
236+
uses: actions/download-artifact@v4
237+
with:
238+
name: semaphore
239+
240+
- name: Write config
241+
run: |
242+
cat > config.json <<EOF
243+
{
244+
"sqlite": {
245+
"host": "/tmp/db.sqlite"
246+
},
247+
"dialect": "sqlite",
248+
"email_alert": false
249+
}
250+
EOF
251+
252+
- name: Migrate database
253+
run: |
254+
chmod +x ./semaphore && ./semaphore migrate --config config.json
255+
228256
integrate-boltdb:
229257
runs-on: ubuntu-latest
230258

0 commit comments

Comments
 (0)