-
Notifications
You must be signed in to change notification settings - Fork 39
98 lines (76 loc) · 2.15 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
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: Debug Information
run: |
yarn -v
ls .yarn/releases
cat .yarnrc.yml
cat yarn.lock
- name: ⚙️ Enable Corepack
run: |
corepack enable
echo "corepack enabled"
- name: Set Yarn Version to Berry
run: yarn set version berry
# run: yarn policies set-version
- name: Install dependencies
uses: ./.github/actions/install-deps
- name: Debug more
run: |
yarn -v
yarn info packrat-world@workspace:.
yarn workspaces list --json
- name: Run setup
run: |
yarn -v
which yarn
yarn set version stable
yarn install
# cp client/.env.example client/.env
# cp client/app.json.example client/app.json
# cp server/.env.example server/.env
# yarn setup
# - name: Clean Cache and Reinstall
# run: |
# yarn cache clean
# yarn install --immutable
- name: Start Server in Background
run: |
cd server
yarn start &
- name: Start Expo in Background
run: |
cd apps/expo
yarn web &
- name: Wait for a while
run: sleep 120 # 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