Skip to content

deps: modules update #100

deps: modules update

deps: modules update #100

name: E2e tests
on:
pull_request:
push:
branches:
- master
- dev
jobs:
test:
name: Running e2e tests
runs-on: ubuntu-latest
env:
OAUTH_GOOGLE_ID: secret
OAUTH_GOOGLE_SECRET: secret
OAUTH_FACEBOOK_ID: secret
OAUTH_FACEBOOK_SECRET: secret
JWT_ACCESS_SECRET_KEY: secret
JWT_ACCESS_EXPIRATION_TIME: 5m
JWT_REFRESH_SECRET_KEY: secret
JWT_REFRESH_EXPIRATION_TIME: 30d
defaults:
run:
working-directory: ./server
services:
postgres-tests:
image: postgres:alpine
env:
POSTGRES_USER: tests
POSTGRES_PASSWORD: tests
POSTGRES_DB: postgres-tests
ports:
- 5431:5432
redis-tests:
image: redis:alpine
ports:
- 6379:6379
steps:
- uses: actions/checkout@v3
name: Postgres setup
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Pnpm Setup
run: npm install -g pnpm
- name: Install
run: pnpm install --no-frozen-lockfile
- name: Test
run: pnpm test:e2e