Skip to content

Commit

Permalink
Merge branch 'PSMRI:develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
kalyan-chokkam authored Dec 14, 2023
2 parents 9b69e62 + c5a8c7d commit 85ea98c
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-on-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ jobs:
run: mvn clean install

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v2
9 changes: 8 additions & 1 deletion .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,23 @@ env:
jobs:
Package-test:
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: Build with Maven
run: mvn clean install -DENV_VAR=${{ env.ENV_VAR }}
Expand Down
47 changes: 47 additions & 0 deletions .github/workflows/sast-and-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Package

on:
push:
branches: [ "develop"]
paths-ignore:
- target/**

pull_request:
branches: [ "develop" ]
paths-ignore:
- target/**

env:
ENV_VAR: test

jobs:
Package-test:
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: Build with Maven
run: mvn clean install -DENV_VAR=${{ env.ENV_VAR }}

- name: Build WAR file
run: mvn -B package --file pom.xml

- name: Upload WAR file as artifact
uses: actions/upload-artifact@v2
with:
name: Identity-API
path: target/identity-0.0.1.war
5 changes: 5 additions & 0 deletions src/main/environment/common_local.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# DataSource settings: set here your own configurations for the database
spring.datasource.url=<Enter AMRIT DB_IDENTITY URL here>
spring.datasource.username=<Enter your AMRIT DB_IDENTITY username>
spring.datasource.password=<Enter your AMRIT DB_IDENTITY password>
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
2 changes: 0 additions & 2 deletions src/main/environment/common_test.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@ spring.datasource.url=<Enter AMRIT DB_IDENTITY URL here>
spring.datasource.username=<Enter your AMRIT DB_IDENTITY username>
spring.datasource.password=<Enter your AMRIT DB_IDENTITY password>
spring.datasource.driver-class-name=com.mysql.jdbc.Driver


0 comments on commit 85ea98c

Please sign in to comment.