Skip to content

Prisma のアップデート (#37) #61

Prisma のアップデート (#37)

Prisma のアップデート (#37) #61

Workflow file for this run

name: test
on:
push:
paths:
- 'backend/**'
defaults:
run:
working-directory: backend
jobs:
unit_test:
name: Unit Test
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '19'
cache: 'yarn'
cache-dependency-path: backend/yarn.lock
- run: yarn install --frozen-lockfile
- run: yarn test
integration_test:
name: Integration Test
runs-on: ubuntu-latest
services:
postgres:
image: postgres:13.5
env:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: challenge_test
POSTGRES_INITDB_ARGS: --encoding=UTF-8
TZ: Asia/Tokyo
ports:
- 5430:5432
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '19'
cache: 'yarn'
cache-dependency-path: backend/yarn.lock
- run: yarn install --frozen-lockfile
- run: yarn test:integration