Skip to content

Commit

Permalink
ED-4000 feat: Github actions instead of Jenkins-05
Browse files Browse the repository at this point in the history
  • Loading branch information
princegupta1131 committed May 30, 2024
1 parent 34b0fc4 commit 041e4df
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,20 @@ jobs:
echo "File dist/index.html does not exist"
fi
- name: Set up dependencies for server
- name: Set up server directories
run: mkdir -p $GITHUB_WORKSPACE/app_dist

- name: Copy server files
run: |
mkdir -p $GITHUB_WORKSPACE/app_dist
cp -r src/app/libs src/app/helpers src/app/proxy src/app/resourcebundles src/app/package.json src/app/framework.config.js src/app/sunbird-plugins src/app/routes src/app/constants src/app/controllers src/app/server.js $GITHUB_WORKSPACE/app_dist/
shell: /usr/bin/bash -e {0}

- name: Install server dependencies
working-directory: $GITHUB_WORKSPACE/app_dist
working-directory: ${{ github.workspace }}/app_dist
run: yarn install --ignore-engines --no-progress --production=true

- name: Run server build script
working-directory: $GITHUB_WORKSPACE/app_dist
working-directory: ${{ github.workspace }}/app_dist
run: node helpers/resourceBundles/build.js -task="phraseAppPull"

- name: Test cases
Expand All @@ -82,4 +84,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

0 comments on commit 041e4df

Please sign in to comment.