Skip to content

chore: add e2e tests command #139

chore: add e2e tests command

chore: add e2e tests command #139

Workflow file for this run

name: CI-apps/server
on:
push:
branches: [dev, main]
paths:
- 'apps/server/**'
- 'package.json'
- '*.lock'
- 'tsconfig.base.json'
- '.prettier*'
- '.github/**'
pull_request:
types: [opened, synchronize, reopened]
paths:
- 'apps/server/**'
- 'package.json'
- '*.lock'
- 'tsconfig.base.json'
- '.prettier*'
- '.github/**'
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:15
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
defaults:
run:
working-directory: apps/server
strategy:
matrix:
node-version: [18.17]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: 📥 Monorepo install
uses: ./.github/actions/pnpm-install
- name: 🏗 Build Packages
working-directory: ./
run: pnpm packages:build
- name: 🕵️ Typecheck
run: pnpm typecheck
- name: 🔬 Lint
run: pnpm lint
- name: 🧪 Test
run: pnpm test
env:
PGUSER: postgres
PGHOST: localhost
PGPASSWORD: postgres
PGDATABASE: postgres
PGPORT: 5432
- name: 🏗 Build
run: pnpm build