Skip to content

Commit

Permalink
Bump postgrator-cli version to fix migration issues. Separate ubuntu …
Browse files Browse the repository at this point in the history
…and windows builds
  • Loading branch information
Pupix committed Jan 16, 2025
1 parent 9df693c commit aa0b957
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 32 deletions.
27 changes: 19 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@ on:

jobs:
build:
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest

runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest

services:
postgres:
Expand All @@ -40,8 +34,25 @@ jobs:
- run: npm run db:migrate
- run: npm test

build_windows:
runs-on: windows-latest
steps:
- name: Setup PostgreSQL for Linux/macOS/Windows
uses: ikalnytskyi/action-setup-postgres@v7
id: postgres
with:
port: 5433
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- run: pg_isready
- run: npm ci
- run: npm run db:migrate
- run: npm test

automerge:
needs: build
needs: [build, build_windows]
runs-on: ubuntu-latest
permissions:
pull-requests: write
Expand Down
46 changes: 23 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"mercurius": "^15.1.0",
"pg": "^8.13.1",
"pino-pretty": "^13.0.0",
"postgrator-cli": "^9.0.0",
"postgrator-cli": "^9.0.1",
"slidev-theme-nearform": "^2.0.0"
}
}

0 comments on commit aa0b957

Please sign in to comment.