Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #32 from vaibhavkhanna08/develop
Browse files Browse the repository at this point in the history
Update Master branch code
  • Loading branch information
devikasuresh20 authored Oct 13, 2023
2 parents 3f97a92 + 8dc9a11 commit ff3b353
Show file tree
Hide file tree
Showing 68 changed files with 3,462 additions and 677 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Static Code Analysis and Package Prod
name: Package Prod
on:
push:
branches: [ "master"]

jobs:
CodeQL:
Package:
runs-on: ubuntu-latest
permissions:
actions: read
Expand All @@ -23,49 +23,12 @@ jobs:
with:
java-version: '17'
distribution: 'zulu'

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: javascript,typescript


- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 16

- name: Build with Yarn
run: |
yarn config set legacy-peer-deps true
yarn global add node-gyp
yarn add node-sass --force
yarn --force
yarn build
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
languages: javascript,typescript

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

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

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

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 16


- name: Build with Yarn
run: |
yarn config set legacy-peer-deps true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Static Code Analysis and Package
name: Package
on:
push:
branches: [ "develop"]

jobs:
CodeQL:
Package:
runs-on: ubuntu-latest
permissions:
actions: read
Expand All @@ -24,11 +24,6 @@ jobs:
java-version: '17'
distribution: 'zulu'

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: javascript,typescript

- name: Set up Node.js
uses: actions/setup-node@v2
with:
Expand All @@ -42,38 +37,6 @@ jobs:
yarn --force
yarn build
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
languages: javascript,typescript

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

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

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

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 16

- name: Build with Yarn
run: |
yarn config set legacy-peer-deps true
yarn global add node-gyp
yarn add node-sass --force
yarn --force
yarn build
- name: Create WAR file
run: jar -cvf ecd-ui-v1.0.war -C dist .

Expand Down
58 changes: 58 additions & 0 deletions .github/workflows/sast.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: "CodeQL"

on:
push:
branches: [ "develop" ]
paths-ignore:
- target/**
- dist/**
pull_request:
# The branches below must be a subset of the branches above
branches: [ "develop" ]
paths-ignore:
- target/**
- dist/**
jobs:
analyze:
name: Analyze

runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
permissions:
actions: read
contents: read
security-events: write



strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]




steps:
- name: Checkout repository
uses: actions/checkout@v3



# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}

# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2



- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ testem.log
# System files
.DS_Store
Thumbs.db
/.vscode
4 changes: 0 additions & 4 deletions .vscode/extensions.json

This file was deleted.

20 changes: 0 additions & 20 deletions .vscode/launch.json

This file was deleted.

42 changes: 0 additions & 42 deletions .vscode/tasks.json

This file was deleted.

21 changes: 0 additions & 21 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -205,27 +205,6 @@
</execution>
</executions>
</plugin>
<!-- <plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<version>1.2.1.Final</version>
<configuration>
<id>${server-id}</id>
<hostname>$${server-hostname}</hostname>
<port>$${server-port}</port>
<username>admin</username>
<password>ad@min123</password>
</configuration>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
</plugin> -->
</plugins>
</build>
</project>
Loading

0 comments on commit ff3b353

Please sign in to comment.