From 8ee4a8d53d0aff34be29f1098747bf6e6cd35a2b Mon Sep 17 00:00:00 2001 From: princegupta1131 <114015020+princegupta1131@users.noreply.github.com> Date: Thu, 30 May 2024 18:31:40 +0530 Subject: [PATCH] ED-4000 feat: Github actions instead of Jenkins-02 --- .github/workflows/ci-cd.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 614902cd0f6..8704dbb1070 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -28,10 +28,17 @@ jobs: npm run build - name: List dist directory contents - run: ls -l src/app/client/dist + working-directory: src/app/client + run: ls -l dist - - name: Move index.html to index.ejs - run: mv src/app/client/dist/index.html src/app/client/dist/index.ejs + - name: Move index.html to index.ejs if it exists + working-directory: src/app/client + run: | + if [ -f dist/index.html ]; then + mv dist/index.html dist/index.ejs + else + echo "File dist/index.html does not exist" + fi - name: Set up dependencies for server run: | @@ -63,4 +70,4 @@ jobs: cd - - name: Run Sonar Scanner - run: /tmp/sonar-scanner-5.0.1.3006-linux/bin/sonar-scanner + run: /tmp/sonar-scanner-5.0.1.3006-linux/bin/sonar-scanner \ No newline at end of file