CodeQL #681
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: "CodeQL" | |
on: | |
push: | |
branches: [ develop, main ] | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: [ develop ] | |
schedule: | |
- cron: '15 19 * * 6' | |
jobs: | |
analyze: | |
name: Analyze | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
strategy: | |
fail-fast: true | |
matrix: | |
language: [ 'java', 'javascript' ] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v2 | |
with: | |
languages: ${{ matrix.language }} | |
- name: Setup Java | |
if: matrix.language == 'java' | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
cache: maven | |
- name: Setup pnpm | |
if: matrix.language == 'javascript' | |
uses: pnpm/action-setup@v2 | |
with: | |
version: latest | |
- name: Build with Maven | |
if: matrix.language == 'java' | |
run: mvn -B package -Pdebug -Dmaven.test.skip=true | |
- name: Build with pnpm | |
if: matrix.language == 'javascript' | |
run: | | |
cd frontend | |
pnpm install | |
pnpm run generate | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v2 |