Update to postgres 13 #169
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
branches: [ develop ] | |
pull_request: | |
jobs: | |
unit: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node_version: [16, 18] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "${{ matrix.node_version }}" | |
- run: yarn --pure-lockfile | |
- run: yarn test:unit | |
integration: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node_version: [16, 18] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "${{ matrix.node_version }}" | |
- run: yarn --pure-lockfile | |
- run: yarn test:integration | |
integration-postgres: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node_version: [16, 18] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "${{ matrix.node_version }}" | |
- run: yarn --pure-lockfile | |
- name: Set up PostgreSQL 13 | |
run: | | |
docker run --detach --publish 5432:5432 \ | |
--env POSTGRES_PASSWORD=pass \ | |
--env POSTGRES_INITDB_ARGS="--lc-collate C --lc-ctype C --encoding UTF8" \ | |
postgres:13 | |
- run: yarn test:postgres |