Skip to content

Commit

Permalink
Test new action approach3
Browse files Browse the repository at this point in the history
  • Loading branch information
g-goulis committed Sep 23, 2024
1 parent a9f8b64 commit 4a65764
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

javadoc:
runs-on: ubuntu-latest
needs: test
needs: test # Ensures the javadoc phase runs only after the test phase succeeds
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -47,11 +47,12 @@ jobs:
exit 1
fi
deploy:
update-docs:
runs-on: ubuntu-latest

needs: [test, javadoc] # This ensures that deploy phase runs only after both test and javadoc phases succeed
if: github.event.pull_request.merged == true # Ensures this runs only when the PR is merged
steps:
- name: Checkout repository
- name: Checkout code
uses: actions/checkout@v2

- name: Set up SSH for deploy key
Expand All @@ -66,14 +67,15 @@ jobs:
- name: Generate Javadoc
run: mvn javadoc:javadoc --no-transfer-progress

- name: Push Javadoc to GitHub Pages
- name: Deploy docs to GitHub Pages
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git remote set-url origin [email protected]:${{ github.repository }}.git
rm -rf docs/apidocs
mv target/site/apidocs docs/apidocs
git add docs/apidocs
git commit -m "Update Javadoc"
git push origin main
git push origin gh-pages
env:
GIT_SSH_COMMAND: "ssh -i ~/.ssh/deploy_key -o IdentitiesOnly=yes"
GIT_SSH_COMMAND: "ssh -i ~/.ssh/deploy_key -o IdentitiesOnly=yes"
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
public class FlowUtils {

/**
* Method for generating <strong>ALL</strong> possibilities
* Method for generating all possibilities
* of Flows
*
* @param microserviceSystem the microservice system to scan for flows
Expand Down Expand Up @@ -223,7 +223,7 @@ private static Field findServiceField(Flow flow) {
* This method finds any jClass affiliated with the serviceField of a flow.
* Due to polymorphism the type is not guaranteed to match one class so all
* possibilities will be considered.
* <br/><strong>Note: This is a source of approximation -- Runtime types</strong>
* Note: This is a source of approximation -- Runtime types
*
* @param flow the flow
* @return the jClass affiliated with the serviceField
Expand Down Expand Up @@ -278,7 +278,7 @@ private static Field findRepositoryField(Flow flow) {
* This method finds any jClass affiliated with the repositoryField of a flow.
* Due to polymorphism the type is not guaranteed to match one class so all
* possibilities will be considered.
* <br/><strong>Note: This is a source of approximation -- Runtime types</strong>
* Note: This is a source of approximation -- Runtime types
*
* @param flow the flow
* @return the jClass affiliated with the repositoryField
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public NoApiGateway checkforApiGateway(MicroserviceSystem microserviceSystem) {
}

/**
* Checks if the given JsonObject contains the "cloud" -> "gateway" configuration.
* Checks if the given JsonObject contains the "cloud" or "gateway" configuration.
* @param data The JsonObject to check.
* @return true if the configuration is found, false otherwise.
*/
Expand Down

0 comments on commit 4a65764

Please sign in to comment.