-
Notifications
You must be signed in to change notification settings - Fork 38
62 lines (48 loc) · 1.4 KB
/
node.js.dev.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Node.js CI for Development Environment
on:
push:
branches: [ "**" ] # adjust this to the branches you want to run CI on
pull_request:
branches: [ "**" ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest] # Operating systems
node-version: [20.x] # Node.js versions
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
uses: ./.github/actions/install-deps
- name: Start Server in Background
run: |
cd server
yarn start &
- name: Start Expo in Background
run: |
cd apps/expo
yarn web &
- name: Start Vite in Background
run: |
cd apps/vite
yarn dev &
- name: Wait for a while
run: sleep 520 # wait for some time to let the server start
- name: Kill Background Jobs (Unix)
if: matrix.os != 'windows-latest'
run: kill $(jobs -p) || true
- name: Kill Background Jobs (Windows)
if: matrix.os == 'windows-latest'
run: |
Get-Job | Stop-Job
Get-Job | Remove-Job