-
Notifications
You must be signed in to change notification settings - Fork 10
38 lines (32 loc) · 946 Bytes
/
nodejs.yml
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
name: Test build
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [12.x, 14.x, 16.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Build and start tasks
shell: bash
run: |
set -e
cd tasks/async
npm install
npm start &
sleep 5
curl -f http://localhost:3000/orgsList
if command -v killall; then killall node; else taskkill //F //IM node.exe; fi
cd ../react
npm install
npm run server &
sleep 7
curl -f http://localhost:3000/clickCount
if command -v killall; then killall node; else taskkill //F //IM node.exe; fi
npm run build