@@ -27,12 +27,12 @@ jobs:
2727 - name : Run lint
2828 run : yarn lint
2929
30- test :
30+ test-front :
3131 runs-on : ${{ matrix.os }}
3232
3333 strategy :
3434 matrix :
35- os : [ubuntu-latest]
35+ os : [ ubuntu-latest ]
3636 node-version : [ 14.x ]
3737
3838 steps :
@@ -44,11 +44,30 @@ jobs:
4444 - name : Install dependencies
4545 run : yarn install --frozen-lockfile --network-timeout 500000
4646 - name : Run test
47- run : yarn test
47+ run : yarn test:front
48+
49+ test-server :
50+ runs-on : ${{ matrix.os }}
51+
52+ strategy :
53+ matrix :
54+ os : [ ubuntu-latest ]
55+ node-version : [ 14.x ]
56+
57+ steps :
58+ - uses : actions/checkout@v2
59+ - name : Use Node.js ${{ matrix.node-version }}
60+ uses : actions/setup-node@v1
61+ with :
62+ node-version : ${{ matrix.node-version }}
63+ - name : Install dependencies
64+ run : yarn install --frozen-lockfile --network-timeout 500000
65+ - name : Run test
66+ run : yarn test:server
4867
4968 release :
5069 runs-on : ubuntu-latest
51- needs : [ lint, test ]
70+ needs : [ lint, test-front, test-server ]
5271 if : ${{ github.event_name != 'pull_request' && contains(github.ref, 'master') }}
5372
5473 strategy :
@@ -111,12 +130,12 @@ jobs:
111130 - name : Build and push
112131 env :
113132 HEROKU_API_KEY : ${{ secrets.HEROKU_API_KEY }}
114- run : heroku container:push -a ${{ secrets.HEROKU_APP_NAME }} web
133+ run : heroku container:push -a tsed-api-staging web
115134
116135 - name : Release
117136 env :
118137 HEROKU_API_KEY : ${{ secrets.HEROKU_API_KEY }}
119- run : heroku container:release -a ${{ secrets.HEROKU_APP_NAME }} web
138+ run : heroku container:release -a tsed-api-staging web
120139
121140 - uses : actions/upload-artifact@v2
122141 with :
@@ -161,12 +180,12 @@ jobs:
161180 - name : Build and push
162181 env :
163182 HEROKU_API_KEY : ${{ secrets.HEROKU_API_KEY }}
164- run : heroku container:push -a ${{ secrets.HEROKU_APP_NAME }} web
183+ run : heroku container:push -a tsed-api web
165184
166185 - name : Release
167186 env :
168187 HEROKU_API_KEY : ${{ secrets.HEROKU_API_KEY }}
169- run : heroku container:release -a ${{ secrets.HEROKU_APP_NAME }} web
188+ run : heroku container:release -a tsed-api web
170189
171190 - uses : actions/upload-artifact@v2
172191 with :
0 commit comments