Skip to content

Commit

Permalink
workflow test
Browse files Browse the repository at this point in the history
  • Loading branch information
eldpswp99 committed Oct 12, 2023
1 parent 4b671c2 commit c786b06
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions backend/.github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: 테스트

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
test:
runs-on: ubuntu-20.04

services:
postgres:
image: postgres
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: test
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
redis:
image: redis
ports:
- 6379:6379

steps:
- uses: actions/checkout@v3
- name: Use Node.js 20
uses: actions/setup-node@v3
- name: 의존성 설치
run: npm install
- name: 테스트
run: npm test

0 comments on commit c786b06

Please sign in to comment.