Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions .github/workflows/sast-and-package-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Static Code Analysis and Packaging Prod
on:
push:
branches: [ "master","develop" ]

jobs:
CodeQL:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
steps:

- name: Checkout code
uses: actions/checkout@v2

- name: Setup JDK 8
uses: actions/setup-java@v2
with:
java-version: 8
distribution: 'adopt'

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: Java

- name: Build with Maven
run: mvn clean install -Denvironment=prod

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
languages: Java

Packaging:
needs: codeql
runs-on: ubuntu-latest
steps:

- name: Checkout code
uses: actions/checkout@v3

- name: Setup JDK 8
uses: actions/setup-java@v2
with:
java-version: 8
distribution: 'adopt'

- name: Create WAR file
run: mvn -B package --file pom.xml
- name: Upload WAR file as artifact
uses: actions/upload-artifact@v2
with:
name: Common-API
path: target/commonapi-v1.0.war