forked from boostcampwm-2021/web30-boostock
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1.16 KB
/
testBackend.yml
File metadata and controls
44 lines (36 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Test Backend
on:
pull_request_target:
types: [labeled]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
environment: develop
steps:
- uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: '16.x'
- name: Create Environment File
run: |
echo "${{ secrets.TEST_ENV }}" >> .env.dev
working-directory: ./back
- name: Create ORM Config
uses: jsdaniell/create-json@1.1.2
with:
name: 'ormconfig.json'
json: ${{ secrets.TEST_ORM_CONFIG }}
dir: 'back/'
- name: Create Session Config
uses: jsdaniell/create-json@1.1.2
with:
name: 'sessionStoreConfig.json'
json: ${{ secrets.TEST_SESSION_CONFIG }}
dir: 'back/'
- name: Run Test
run: |
npm install
npm run test
working-directory: ./back