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

CI for windows #1132

Merged
merged 11 commits into from
Feb 2, 2024
65 changes: 65 additions & 0 deletions .github/workflows/ci_windows_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: ci_windows_test

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
setup-database:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:alpine
env:
POSTGRES_PASSWORD: postgres
ports:
- 5433:5432
options:
--health-cmd pg_isready --health-interval 10s --health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4

build_windows_container_test:
runs-on: windows-latest

services:
postgres:
image: postgres:alpine
env:
POSTGRES_PASSWORD: postgres
ports:
- 5433:5432
options:
--health-cmd pg_isready --health-interval 10s --health-timeout 5s
--health-retries 5

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- run: |
npm ci
npm run db:migrate
# npm run lint
# npm test


build_windows:
needs: setup-database
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- run: |
npm ci
npm run db:migrate
# npm run lint
# npm test
Loading