From bd04749733eeae606a6c3544bc63345d71f16777 Mon Sep 17 00:00:00 2001 From: rajutkarsh07 Date: Thu, 24 Oct 2024 22:57:08 +0530 Subject: [PATCH 1/3] fixed frontend testing --- .github/workflows/frontend-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/frontend-ci.yml b/.github/workflows/frontend-ci.yml index b282248f..68e1edb3 100644 --- a/.github/workflows/frontend-ci.yml +++ b/.github/workflows/frontend-ci.yml @@ -31,7 +31,9 @@ jobs: git checkout pr - name: Install Angular CLI - run: npm install -g @angular/cli + run: | + cd webiu-ui + npm install -g @angular/cli - name: Install dependencies run: | From 2a7baeddf90a54304693b355299357a92dea2417 Mon Sep 17 00:00:00 2001 From: rajutkarsh07 Date: Thu, 24 Oct 2024 23:57:00 +0530 Subject: [PATCH 2/3] fix yml file for frontend --- .github/workflows/frontend-ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/frontend-ci.yml b/.github/workflows/frontend-ci.yml index 68e1edb3..5287be50 100644 --- a/.github/workflows/frontend-ci.yml +++ b/.github/workflows/frontend-ci.yml @@ -40,6 +40,11 @@ jobs: cd webiu-ui npm install + - name: Install Chrome + run: | + sudo apt-get update + sudo apt-get install -y google-chrome-stable + - name: Build Angular App run: | cd webiu-ui @@ -48,4 +53,4 @@ jobs: - name: Run Angular Tests run: | cd webiu-ui - npm test + npm test -- --browsers=ChromeHeadless From a34b732e4c578dbc4d43cdce499f3273f29784ec Mon Sep 17 00:00:00 2001 From: rajutkarsh07 Date: Fri, 25 Oct 2024 00:04:56 +0530 Subject: [PATCH 3/3] refactoring changes --- .github/workflows/frontend-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/frontend-ci.yml b/.github/workflows/frontend-ci.yml index 5287be50..aab8893b 100644 --- a/.github/workflows/frontend-ci.yml +++ b/.github/workflows/frontend-ci.yml @@ -53,4 +53,4 @@ jobs: - name: Run Angular Tests run: | cd webiu-ui - npm test -- --browsers=ChromeHeadless + npm test -- --browsers=ChromeHeadless --watch=false