From aa0b957a3bb133c9100eeffe68cb6cc4a0ac3757 Mon Sep 17 00:00:00 2001 From: Pupix Date: Thu, 16 Jan 2025 17:08:12 +0100 Subject: [PATCH] Bump postgrator-cli version to fix migration issues. Separate ubuntu and windows builds --- .github/workflows/ci.yml | 27 ++++++++++++++++------- package-lock.json | 46 ++++++++++++++++++++-------------------- package.json | 2 +- 3 files changed, 43 insertions(+), 32 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cb795dd..33a0697 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,13 +10,7 @@ on: jobs: build: - strategy: - matrix: - os: - - ubuntu-latest - - windows-latest - - runs-on: ${{ matrix.os }} + runs-on: ubuntu-latest services: postgres: @@ -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 diff --git a/package-lock.json b/package-lock.json index 34c62bd..e498e2d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -28,7 +28,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" }, "devDependencies": { @@ -8995,9 +8995,9 @@ "license": "MIT" }, "node_modules/lilconfig": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.2.tgz", - "integrity": "sha512-eop+wDAvpItUys0FWkHIKeC9ybYrTGbU41U5K7+bttZZeohvnY7M9dZ5kB21GNWiFT2q1OoPTvncPCgSOVO5ow==", + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.3.tgz", + "integrity": "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==", "engines": { "node": ">=14" }, @@ -11174,16 +11174,16 @@ } }, "node_modules/postgrator-cli": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/postgrator-cli/-/postgrator-cli-9.0.0.tgz", - "integrity": "sha512-uhxChTkGQspbN0L+nBPxm6qwMH7ZAnqI2NWgkEdaPjJ2c2MSUqnWnoTlTqOQ8zh5Tsp6PNLMUIOAyUOkN0tBhw==", + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/postgrator-cli/-/postgrator-cli-9.0.1.tgz", + "integrity": "sha512-3JqdJ+BGgPy7zFeO/GI+SaYuKxe0x0ky1kPixg3cp6sVmevgkehlox0tp1t8YpZVNeJLFRobvMmB6qwnELvUlQ==", "dependencies": { "command-line-args": "^6.0.1", "command-line-usage": "^7.0.3", - "lilconfig": "^3.1.2", + "lilconfig": "^3.1.3", "p-tap": "^4.0.0", "postgrator": "^8.0.0", - "yaml": "^2.6.0" + "yaml": "^2.7.0" }, "bin": { "postgrator": "index.js" @@ -11213,9 +11213,9 @@ } }, "node_modules/postgrator-cli/node_modules/yaml": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.6.0.tgz", - "integrity": "sha512-a6ae//JvKDEra2kdi1qzCyrJW/WZCgFi8ydDV+eXExl95t+5R+ijnqHJbz9tmMh8FUjx3iv2fCQ4dclAQlO2UQ==", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.7.0.tgz", + "integrity": "sha512-+hSoy/QHluxmC9kCIJyL/uyFmLmc+e5CFR5Wa+bpIhIj85LVb9ZH2nVnqrHoSvKogwODv0ClqZkmiSSaIH5LTA==", "bin": { "yaml": "bin.mjs" }, @@ -22364,9 +22364,9 @@ } }, "lilconfig": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.2.tgz", - "integrity": "sha512-eop+wDAvpItUys0FWkHIKeC9ybYrTGbU41U5K7+bttZZeohvnY7M9dZ5kB21GNWiFT2q1OoPTvncPCgSOVO5ow==" + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.3.tgz", + "integrity": "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==" }, "linkify-it": { "version": "5.0.0", @@ -23970,22 +23970,22 @@ } }, "postgrator-cli": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/postgrator-cli/-/postgrator-cli-9.0.0.tgz", - "integrity": "sha512-uhxChTkGQspbN0L+nBPxm6qwMH7ZAnqI2NWgkEdaPjJ2c2MSUqnWnoTlTqOQ8zh5Tsp6PNLMUIOAyUOkN0tBhw==", + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/postgrator-cli/-/postgrator-cli-9.0.1.tgz", + "integrity": "sha512-3JqdJ+BGgPy7zFeO/GI+SaYuKxe0x0ky1kPixg3cp6sVmevgkehlox0tp1t8YpZVNeJLFRobvMmB6qwnELvUlQ==", "requires": { "command-line-args": "^6.0.1", "command-line-usage": "^7.0.3", - "lilconfig": "^3.1.2", + "lilconfig": "^3.1.3", "p-tap": "^4.0.0", "postgrator": "^8.0.0", - "yaml": "^2.6.0" + "yaml": "^2.7.0" }, "dependencies": { "yaml": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.6.0.tgz", - "integrity": "sha512-a6ae//JvKDEra2kdi1qzCyrJW/WZCgFi8ydDV+eXExl95t+5R+ijnqHJbz9tmMh8FUjx3iv2fCQ4dclAQlO2UQ==" + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.7.0.tgz", + "integrity": "sha512-+hSoy/QHluxmC9kCIJyL/uyFmLmc+e5CFR5Wa+bpIhIj85LVb9ZH2nVnqrHoSvKogwODv0ClqZkmiSSaIH5LTA==" } } }, diff --git a/package.json b/package.json index 1ac2309..b8e98fc 100644 --- a/package.json +++ b/package.json @@ -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" } }