Skip to content

Update PostgreSQL to version 18. #7

Update PostgreSQL to version 18.

Update PostgreSQL to version 18. #7

name: Windows Node CI
on: [push, pull_request]
jobs:
build:
runs-on: windows-latest
env:
CI: true
CONFIRM_DROP: 1
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
steps:
# Force LF line endings - necessary to have prettier not complain
- name: Prepare git
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js 16
uses: actions/setup-node@v1
with:
node-version: "16"
- name: Install and Start Postgres 18
run: choco install postgresql18 -y --params '/Password:root'
- name: Setup environment
# Windows postgres auth is 'postgres'/'root' - see
# https://github.com/actions/runner-images/blob/main/images/win/Windows2022-Readme.md#postgresql
run: |
cp .env.ci .env
echo "ROOT_DATABASE_URL=postgres://postgres:root@localhost/template1" >> .env
# These all need to be separate steps on Windows because a failure of a
# command doesn't fail the whole job step - see
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell
- name: yarn
run: yarn --immutable
- name: setup
run: yarn setup
- name: build
run: yarn build
- name: lint
run: yarn lint
- name: test
run: yarn test --ci
- name: depcheck
run: yarn depcheck