Skip to content

Bump ip from 2.0.0 to 2.0.1 (#14) #173

Bump ip from 2.0.0 to 2.0.1 (#14)

Bump ip from 2.0.0 to 2.0.1 (#14) #173

Workflow file for this run

name: Testing CI
on:
push:
branches: [main, develop]
jobs:
webapp:
defaults:
run:
working-directory: ./
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
services:
database:
image: postgres
env:
POSTGRES_USER: ${{ secrets.POSTGRES_USER }}
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
POSTGRES_DB: ${{ secrets.POSTGRES_DB }}
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
env:
JWT_SECRET: ${{ secrets.JWT_SECRET }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
SETUP_PASSWORD: ${{ secrets.SETUP_PASSWORD }}
REDIS_HOST: ${{ secrets.REDIS_HOST }}
REDIS_PORT: ${{ secrets.REDIS_PORT }}
DATABASE_URL: ${{secrets.DATABASE_URL}}
steps:
- uses: actions/checkout@v2
- name: Cache pnpm modules
uses: actions/cache@v2
env:
cache-name: cache-pnpm-modules
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-
- uses: pnpm/[email protected]
with:
version: latest
run_install: |
- recursive: true
args: [--no-frozen-lockfile, --strict-peer-dependencies false]
- run: pnpx prisma migrate deploy
env:
DATABASE_URL: ${{secrets.DATABASE_URL}}
- run: pnpm test -- --ci
env:
JWT_SECRET: ${{ secrets.JWT_SECRET }}