Skip to content

Commit

Permalink
Deps script now needs DB
Browse files Browse the repository at this point in the history
  • Loading branch information
textbook committed Aug 25, 2024
1 parent a43eeb4 commit 020e0ec
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,29 @@ on:
jobs:
update:
runs-on: ubuntu-latest
permissions:
contents: write
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: keepitsecret
POSTGRES_USER: testdb
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
env:
DATABASE_URL: postgres://testdb:keepitsecret@localhost:5432/testdb
steps:
- uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.GH_DEPLOY_KEY }}
- uses: textbook/take-action@nodejs
with:
checkout: "false"
node-version: 20
- run: |
git config --global user.name "gh-actions"
git config --global user.email "actions@github.com"
- run: npm run migration up
- run: ./bin/up-to-date.sh

0 comments on commit 020e0ec

Please sign in to comment.