Skip to content

Conversation

@cYKatherine
Copy link
Contributor

No description provided.

@cYKatherine cYKatherine self-assigned this Dec 19, 2024
run: |
cd ./${{ inputs.working_dir }}
mvn -B -s settings.xml -Dgpg.passphrase="${{ secrets.GPG_PASSPHRASE }}" clean compile test
mvn -B -s settings.xml -Dgpg.passphrase="${{ secrets.GPG_PASSPHRASE }}" clean compile test | tee build.log
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these sections are almost identical. Can we move to scripts folder with the extra flags

"-s settings.xml -Dgpg.passphrase="${{ secrets.GPG_PASSPHRASE }}"

as an argument

@cYKatherine cYKatherine force-pushed the kcc-UID2-3858-verify-no-of-tests-run branch from e0b111a to 9165378 Compare December 23, 2024 05:24
- name: Checkout uid2-shared-actions repo
uses: actions/checkout@v4
with:
ref: kcc-UID2-3858-verify-no-of-tests-run
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to v3 before merging

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the checkout of the repo necessary? Is it possible to use a reusable workflow instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was required for testing. Keep it here as Abu is doing some refactoring laster on so that we don't need to specify the branch name every where when we are testing in the future.

- name: Checkout uid2-shared-actions repo
uses: actions/checkout@v4
with:
ref: kcc-UID2-3858-verify-no-of-tests-run
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to v3 before merging

Comment on lines 10 to 11
echo "WARNING: Could not determine the number of tests run."
tests_run=0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should indent here.

Should we just exit here? If not, the output will be confusing:

WARNING: Could not determine the number of tests run.
ERROR: No tests were run!

Comment on lines 15 to 16
echo "ERROR: No tests were run!"
exit 1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation

- name: Checkout uid2-shared-actions repo
uses: actions/checkout@v4
with:
ref: kcc-UID2-3858-verify-no-of-tests-run
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the checkout of the repo necessary? Is it possible to use a reusable workflow instead?

@@ -0,0 +1,19 @@
#!/usr/bin/env bash

mvn -B $EXTRA_FLAGS clean compile test | tee build.log
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason you didn't use parameters to the script, rather than environment variables? It would seem to me to be more common to use parameters - however I am not strongly opinionated here

Copy link
Contributor

@thomasm-ttd thomasm-ttd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small comment re environment variables vs parameters, but happy for you to make a call

@cYKatherine cYKatherine merged commit a844855 into main Dec 24, 2024
2 checks passed
@cYKatherine cYKatherine deleted the kcc-UID2-3858-verify-no-of-tests-run branch April 8, 2025 03:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants