-
Notifications
You must be signed in to change notification settings - Fork 37
47 lines (38 loc) · 1.05 KB
/
frontend-ci.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
name: CI for Webiu Frontend
on:
push:
branches: [feature/webiu-2024]
pull_request:
branches: [feature/webiu-2024]
jobs:
build-and-deploy:
name: Build, Test, and Deploy Angular (webiu-ui)
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Install Angular CLI
run: npm install -g @angular/cli
- name: Install dependencies
run: |
cd webiu-ui
npm install
- name: Build Angular App
run: |
cd webiu-ui
ng build --output-path=../docs --base-href="/Webiu/"
- name: Run Angular Tests
env:
CHROME_BIN: google-chrome
run: |
cd webiu-ui
ng test --watch=false --browsers=ChromeHeadless --no-sandbox
- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/feature/webiu-2024'
run: |
cd webiu-ui
ngh --dir=../docs