-
Notifications
You must be signed in to change notification settings - Fork 9
Pipeline optimization #819
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
Schmarvinius
wants to merge
24
commits into
cap-java:main
Choose a base branch
from
Schmarvinius:main
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
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
8ecc577
.
Schmarvinius 5267143
update
Schmarvinius 3683cb6
add default days
Schmarvinius 302f38c
.
Schmarvinius 0ce2515
.
Schmarvinius 987838e
make codeql its own action
Schmarvinius 4767d3c
simplify
Schmarvinius cbcc5da
simplify v2
Schmarvinius d38d6fc
remove pitest
Schmarvinius 719bdb7
update actions
Schmarvinius 585c8aa
improvement
Schmarvinius 1e31c29
update
Schmarvinius 1f0efaf
Merge pull request #1 from Schmarvinius/test-overhaul
Schmarvinius ac12766
cahnge npm i
Schmarvinius 5f1c07d
add cds-dk
Schmarvinius e30d192
add install-node.skip
Schmarvinius d902d32
add unit-tests and improve cf-bind
Schmarvinius 2581bd4
update
Schmarvinius c57b47d
restrict action usage to upstream main
Schmarvinius 5aee24d
replace blackduck curl with blackduck action
Schmarvinius e8f5b42
minor improvements
Schmarvinius 9b76075
add approval step to release
Schmarvinius eef466c
pin blackduck action to specific commit
Schmarvinius ef6848a
update blackduck args
Schmarvinius 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,91 @@ | ||
| name: Bind Cloud Foundry Services | ||
| description: Login to CF and bind services for hybrid testing via cds bind | ||
|
|
||
| inputs: | ||
| cf-api: | ||
| description: Cloud Foundry API endpoint | ||
| required: true | ||
| cf-username: | ||
| description: Cloud Foundry username | ||
| required: true | ||
| cf-password: | ||
| description: Cloud Foundry password | ||
| required: true | ||
| cf-org: | ||
| description: Cloud Foundry organization | ||
| required: true | ||
| cf-space: | ||
| description: Cloud Foundry space | ||
| required: true | ||
| auth-method: | ||
| description: 'Malware scanner authentication method: basic or mtls' | ||
| required: true | ||
|
|
||
| runs: | ||
| using: composite | ||
| steps: | ||
| - name: Install CF CLI | ||
| shell: bash | ||
| run: | | ||
| wget -q "https://packages.cloudfoundry.org/stable?release=linux64-binary&version=8.9.0&source=github-rel" -O cf-cli.tar.gz | ||
| tar -xzf cf-cli.tar.gz | ||
| sudo mv cf8 /usr/local/bin/cf | ||
|
Schmarvinius marked this conversation as resolved.
|
||
| cf --version | ||
|
|
||
| - name: CF Login | ||
| shell: bash | ||
| env: | ||
| CF_USERNAME: ${{ inputs.cf-username }} | ||
| CF_PASSWORD: ${{ inputs.cf-password }} | ||
| CF_API: ${{ inputs.cf-api }} | ||
| CF_ORG: ${{ inputs.cf-org }} | ||
| CF_SPACE: ${{ inputs.cf-space }} | ||
| run: | | ||
| for i in {1..5}; do | ||
| cf api "$CF_API" && \ | ||
| cf auth && \ | ||
| cf target -o "$CF_ORG" -s "$CF_SPACE" && break | ||
| if [ "$i" -eq 5 ]; then | ||
| echo "cf login failed after 5 attempts." | ||
| exit 1 | ||
| fi | ||
| echo "cf login failed, retrying ($i/5)..." | ||
| sleep 10 | ||
| done | ||
|
Schmarvinius marked this conversation as resolved.
|
||
|
|
||
| - name: Install @sap/cds-dk | ||
| shell: bash | ||
| run: | | ||
| npm i -g @sap/cds-dk | ||
| echo "$(npm config get prefix)/bin" >> "${GITHUB_PATH}" | ||
|
|
||
| - name: Install CDS dependencies | ||
| shell: bash | ||
| run: npm i | ||
| working-directory: integration-tests/mtx-local | ||
|
|
||
| - name: Bind objectstore | ||
| shell: bash | ||
| working-directory: integration-tests/mtx-local | ||
| run: | | ||
| for i in {1..5}; do | ||
| cds bind os -2 os:pipeline && break | ||
| echo "cds bind objectstore failed, retrying ($i/5)..." | ||
| sleep 30 | ||
| if [ "$i" -eq 5 ]; then | ||
| echo "cds bind objectstore failed after 5 attempts." | ||
| exit 1 | ||
| fi | ||
| done | ||
|
Schmarvinius marked this conversation as resolved.
|
||
|
|
||
| - name: Bind malware-scanner (basic) | ||
| if: inputs.auth-method == 'basic' | ||
| shell: bash | ||
| working-directory: integration-tests/mtx-local | ||
| run: cds bind malware -2 malware:malware-key-basic | ||
|
|
||
| - name: Bind malware-scanner (mtls) | ||
| if: inputs.auth-method == 'mtls' | ||
| shell: bash | ||
| working-directory: integration-tests/mtx-local | ||
| run: cds bind malware -2 malware:malware-key-mtls | ||
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,44 @@ | ||
| name: CodeQL Analysis | ||
| description: Runs CodeQL security analysis on the project. | ||
|
|
||
| inputs: | ||
| java-version: | ||
| description: The Java version to use for the build. | ||
| required: true | ||
| maven-version: | ||
| description: The Maven version to use for the build. | ||
| required: true | ||
|
|
||
| runs: | ||
| using: composite | ||
| steps: | ||
| - name: Set up Java ${{ inputs.java-version }} | ||
| uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5 | ||
| with: | ||
| java-version: ${{ inputs.java-version }} | ||
| distribution: sapmachine | ||
| cache: maven | ||
|
|
||
| - name: Set up Maven ${{ inputs.maven-version }} | ||
| uses: stCarolas/setup-maven@d6af6abeda15e98926a57b5aa970a96bb37f97d1 # v5 | ||
| with: | ||
| maven-version: ${{ inputs.maven-version }} | ||
|
|
||
| - name: Initialize CodeQL | ||
| uses: github/codeql-action/init@ed410739ba306e4ebe5e123421a6bd694e494a2b # v4 | ||
| with: | ||
| languages: java-kotlin | ||
| build-mode: manual | ||
|
|
||
| - name: Install @sap/cds-dk | ||
| run: npm i -g @sap/cds-dk | ||
| shell: bash | ||
|
|
||
| - name: Build Java code | ||
| run: mvn clean compile -B -ntp -Dcds.install-node.skip | ||
| shell: bash | ||
|
|
||
| - name: Perform CodeQL Analysis | ||
| uses: github/codeql-action/analyze@ed410739ba306e4ebe5e123421a6bd694e494a2b # v4 | ||
| with: | ||
| category: "/language:java-kotlin" |
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.
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.
Uh oh!
There was an error while loading. Please reload this page.