Skip to content
Merged
Show file tree
Hide file tree
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
63 changes: 0 additions & 63 deletions .classpath

This file was deleted.

4 changes: 0 additions & 4 deletions .factorypath

This file was deleted.

22 changes: 22 additions & 0 deletions .github/workflows/build-on-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build On Pull Request
on:
pull_request:
branches: [ "master","develop" ]

jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}

- name: Setup JDK 8
uses: actions/setup-java@v2
with:
java-version: 8
distribution: 'adopt'
- name: Build with Maven
run: mvn clean install
Original file line number Diff line number Diff line change
@@ -1,46 +1,52 @@
name: Build and Deploy
name: Static Code Analysis and Packaging
on:
push:
branches: [ "master","develop" ]
pull_request:
branches: [ "master","develop" ]

jobs:
build:
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


- 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


27 changes: 26 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,29 @@
# Ignore the target directory
target/
.settings

# Ignore the .settings directory
.settings/

# Ignore the .project file
.project

# Ignore the .classpath file
.classpath

# Ignore the .factorypath file
.factorypath

# Ignore the .sts4-cache folder
.sts4-cache/

# Ignore the Maven wrapper files
mvnw
mvnw.cmd

# Ignore the logs folder
logs/

# Ignore specific files
swaasaPathcoughSoundAssessment1234567890121678177840715.wav
replay_pid89928.log
hs_err_pid89928.log
1 change: 0 additions & 1 deletion .sts4-cache/classpath-data.json

This file was deleted.

Loading