シードで Pair も作成する (#40) #65
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |