Skip to content

next v2.6.0

next v2.6.0 #906

Workflow file for this run

name: Test
on:
pull_request:
types: [opened, synchronize, reopened]
branches:
- next-v*
- develop
- main
jobs:
testing:
# You must use a Linux environment when using service containers or container jobs
runs-on: ubuntu-latest
# Service containers to run with `runner-job`
services:
# Label used to access the service container
postgres:
# Docker Hub image
image: postgres
# Provide the password for postgres
env:
POSTGRES_PASSWORD: secretpassword
POSTGRES_USER: postgres
POSTGRES_DB: postgres
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
# Downloads a copy of the code in your repository before running CI tests
- name: Check out repository code
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 8
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Run unit tests
run: pnpm test
env:
DATABASE_PASSWORD: secretpassword
DATABASE_USER: postgres
DATABASE_NAME: postgres
DATABASE_HOST: localhost
DATABASE_PORT: 5432
PORT: 8080
COOKIE_PASSWORD: YourPasswortMustBeAtLeast32Charc