Skip to content

Commit 049ab58

Browse files
committed
build: update build steps for test
1 parent 3eea5fa commit 049ab58

File tree

7 files changed

+26
-412
lines changed

7 files changed

+26
-412
lines changed

.github/workflows/build-branch.yaml

+8-4
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,14 @@ jobs:
1515
uses: actions/setup-node@v3
1616
with:
1717
node-version: 18
18-
- run: find . -name 'package-lock.json' -execdir npm ci \;
19-
- run: npm run dev:test &
20-
- run: npx wait-on tcp:9595
21-
- run: npm run test
18+
- name: Install dependencies
19+
run: find . -name 'package-lock.json' -execdir npm ci \;
20+
- name: Run server
21+
run: npm start &
22+
- name: Wait for server to start
23+
run: npx wait-on tcp:8585
24+
- name: Run tests
25+
run: npm run test
2226
build-latest:
2327
name: Build branch
2428
runs-on: ubuntu-latest

.github/workflows/build-latest.yaml

+8-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,14 @@ jobs:
1414
uses: actions/setup-node@v3
1515
with:
1616
node-version: 18
17-
- run: npm ci
18-
- run: npm test
17+
- name: Install dependencies
18+
run: find . -name 'package-lock.json' -execdir npm ci \;
19+
- name: Run server
20+
run: npm start &
21+
- name: Wait for server to start
22+
run: npx wait-on tcp:8585
23+
- name: Run tests
24+
run: npm run test
1925
build-latest:
2026
name: Build latest
2127
runs-on: ubuntu-latest

.github/workflows/release.yaml

+8-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,14 @@ jobs:
1515
uses: actions/setup-node@v3
1616
with:
1717
node-version: 18
18-
- run: npm ci
19-
- run: npm test
18+
- name: Install dependencies
19+
run: find . -name 'package-lock.json' -execdir npm ci \;
20+
- name: Run server
21+
run: npm start &
22+
- name: Wait for server to start
23+
run: npx wait-on tcp:8585
24+
- name: Run tests
25+
run: npm run test
2026
build:
2127
name: Build with google cloud
2228
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)