splitting front and backend #1244
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Code scanning - action" | |
on: | |
push: | |
schedule: | |
- cron: '0 4 * * 0' | |
jobs: | |
CodeQL-Build: | |
strategy: | |
fail-fast: false | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
# Initializes the CodeQL tools for scanning. | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v2 | |
# Build backend (Node.js) | |
- name: Build Node.js backend | |
run: | | |
cd app/src | |
npm install | |
npm run build | |
working-directory: jenkins-for-jira/app | |
# Build frontend (React) | |
- name: Build React frontend | |
run: | | |
cd app/jenkins-for-jira-ui | |
npm install | |
npm run build | |
working-directory: jenkins-for-jira/app/jenkins-for-jira-ui | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v2 |