-
Notifications
You must be signed in to change notification settings - Fork 11
GHA Workflow Updates #397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
IshikaDawda
wants to merge
29
commits into
main
Choose a base branch
from
enhancement/gha
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
GHA Workflow Updates #397
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
4be031b
run dependency-submission workflow when pull request is created
IshikaDawda 407209b
Java 23 support
IshikaDawda c0caa29
Update GHA workflow to run unit tests on pull request action
IshikaDawda 15cc727
Fix unit tests failing on various java version
IshikaDawda 5a56824
Update GHA workflow to run unit tests
IshikaDawda 77a3b3e
Update GHA workflow to run unit tests
IshikaDawda a1c9e9b
Update GHA workflow to run unit tests
IshikaDawda ba97bc8
Fix unit tests failing on various java version
IshikaDawda 1f1d408
Add support java version 21 and 23
IshikaDawda f13e126
Remove inputs from PR based workflow
IshikaDawda 129ed0f
Debug unit test run
IshikaDawda 6064f3f
Merge branch 'main' into enhancement/gha
IshikaDawda 7176f2f
Upgrade setup-java action version
IshikaDawda 53a0ade
Merge remote-tracking branch 'origin/enhancement/gha' into enhancemen…
IshikaDawda e9d4fcf
Java 23 support
IshikaDawda 6aee089
Disabling unit tests run on java 23 due to Unsupported class file
IshikaDawda 31526aa
Fix unit tests failing on java 17 and above
IshikaDawda 538927a
update gradle.properties in workflow
IshikaDawda 92ff682
utilised testContainers instead of postgresql-embedded dependency as …
IshikaDawda e392df2
update imports
IshikaDawda 4fd8bc8
Do not send websocket message if connection is not present
IshikaDawda 7584c6e
remove log level info from GHA unit test run
IshikaDawda 7ccd245
Merge branch 'refs/heads/main' into enhancement/gha
IshikaDawda 163f4d4
Updating workflow runner image to ubuntu-24.04
IshikaDawda bc20f01
Merge branch 'refs/heads/main' into enhancement/gha
IshikaDawda e445140
disable DOCKER_DEFAULT_PLATFORM flag for mysql unit tests
IshikaDawda 5d009c7
Revert "disable DOCKER_DEFAULT_PLATFORM flag for mysql unit tests"
IshikaDawda 905fcfa
disable mysql-6.0.2 modules unit tests with java 21
IshikaDawda dcbfb71
disable mysql-6.0.2 modules unit tests with java 8 above
IshikaDawda File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Workflow: Run Unit tests | ||
# | ||
# Trigger: This workflow runs on every merge to the main branch and on pull request. | ||
name: Unit Tests | ||
on: | ||
|
||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
# this job reads the directories in csec-java-agent/instrumentation-security and creates a JSON with the list of the modules | ||
# this list is paginated and will be used in the verify-module job. | ||
build-agent: | ||
runs-on: ubuntu-24.04 | ||
strategy: | ||
matrix: | ||
java-version: [ 8, 11, 17, 21 ] | ||
|
||
steps: | ||
- name: Checkout CSEC Repo | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.ref }} | ||
|
||
- name: Setup environment | ||
uses: ./.github/actions/setup-environment | ||
with: | ||
apm-aws-access-key-id: ${{ secrets.APM_AWS_ACCESS_KEY_ID }} | ||
apm-aws-secret-access-key: ${{ secrets.APM_AWS_SECRET_ACCESS_KEY }} | ||
apm-aws-region: us-east-2 | ||
|
||
- name: Publish CSEC to local | ||
uses: ./.github/actions/publish-csec-local | ||
|
||
- name: Run CSEC unit tests | ||
uses: ./.github/actions/unit-test | ||
with: | ||
csec-run-scala-unittest: true | ||
java-version: ${{ matrix.java-version }} | ||
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ jdk8=8 | |
jdk11=11 | ||
jdk17=17 | ||
jdk19=19 | ||
jdk20=20 | ||
|
||
jdk21=21 | ||
jdk23=23 |
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium