-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (40 loc) · 1013 Bytes
/
local-libraries.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
name: Local library build
on:
pull_request:
branches:
- release/dev
- release/test
- release/prod
jobs:
build_test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./UI
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@master
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: |
npm install
npm ci
- name: Build Libraries
run: |
for LIB_DIR in projects/*; do
if [[ -d $LIB_DIR ]]; then
LIB_NAME=$(basename $LIB_DIR)
echo "Building $LIB_NAME..."
npx ng build $LIB_NAME
if [ $? -ne 0 ]; then
echo "Error building $LIB_NAME!"
exit 1
fi
echo "$LIB_NAME built successfully!"
fi
done