Skip to content
This repository was archived by the owner on Nov 11, 2025. It is now read-only.

Commit 79327fd

Browse files
committed
chore: Update build configuration
1 parent 82bf730 commit 79327fd

File tree

2 files changed

+28
-8
lines changed

2 files changed

+28
-8
lines changed

.github/workflows/build.yml

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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:

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"scripts": {
88
"test": "lerna run test --stream",
99
"test:e2e": "lerna run test:e2e",
10+
"test:front": "lerna run test --scope=@tsed/backoffice --scope=@tsed/shared",
1011
"test:backoffice": "lerna run test --scope=@tsed/backoffice",
1112
"test:server": "lerna run test --scope=@tsed/server",
1213
"lint": "lerna run lint",

0 commit comments

Comments
 (0)