new release #19
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: Build and Test PR | |
on: [pull_request, workflow_dispatch] | |
jobs: | |
build-test: | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:10.10 | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: test123 | |
ports: | |
- 5432:5432 | |
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16.x' | |
cache: 'pnpm' | |
- run: pnpm add -g pnpm | |
- run: pnpm install | |
- run: pnpm build | |
- name: run CI tests | |
env: | |
INCLUDE_POSTGRES_TESTS: true | |
POSTGRES_HOST: localhost | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: test123 | |
POSTGRES_PORT: 5432 | |
run: pnpm test:ci | |
- run: npx codecov |