Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): make tests run on windows as well #735

Merged
merged 4 commits into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 20 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ on:
- master

jobs:
build:
build_linux:
runs-on: ubuntu-latest

services:
postgres:
image: postgres:alpine
Expand All @@ -33,11 +34,27 @@ 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: npm ci
- run: npm run db:migrate
- run: npm test

automerge:
needs: build
needs: [build_linux, build_windows]
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
contents: write
steps:
- uses: fastify/github-action-merge-dependabot@v3
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"
}
}
Loading