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

Commit d2285c9

Browse files
committed
Improve Github actions to do all testing.
1 parent 5a63b61 commit d2285c9

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

.github/workflows/nodejs.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,21 @@ name: Node.js CI
33
on: [push]
44

55
jobs:
6-
build:
6+
test:
77
runs-on: ubuntu-latest
8-
98
steps:
10-
- uses: actions/checkout@v2
11-
- name: Use Node.js 12.x
12-
uses: actions/setup-node@v1
13-
with:
14-
node-version: 12.x
15-
- run: npm install
16-
- run: npm run build --if-present
17-
- run: npm test
9+
- uses: actions/checkout@v2
10+
- name: Build the stack
11+
run: docker-compose up -d
12+
- name: Sleep for 30 seconds
13+
uses: jakejarvis/wait-action@master
14+
with:
15+
time: '30s'
16+
- name: Use Node.js 12.x
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: 12.x
20+
run: npm install
21+
run: npm run build --if-present
22+
run: npm run test:prod
23+
run: npm run test:integration

0 commit comments

Comments
 (0)