Skip to content
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

Dev #34

Merged
merged 17 commits into from
Sep 23, 2024
Merged

Dev #34

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 0 additions & 28 deletions .github/workflows/FetchChanges.yml

This file was deleted.

57 changes: 0 additions & 57 deletions .github/workflows/deploy-cimet.yml

This file was deleted.

116 changes: 79 additions & 37 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,79 @@
## This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
## For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
#
## For each push and pull request, it builds the project, formats the code and runs units tests.
#name: CI
#
#on:
# push:
# branches: [ "main" ]
# pull_request:
# branches: [ "main" ]
#
#jobs:
# build:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - name: Set up JDK 17
# uses: actions/setup-java@v3
# with:
# java-version: '17'
# distribution: 'temurin'
# cache: maven
# - name: Build with Maven
# run: mvn -B package --file pom.xml
#
# formatting:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3 # v2 minimum required
# - uses: axel-op/googlejavaformat-action@v3
# with:
# args: "--skip-sorting-imports --replace"
# # Recommended if you use MacOS:
# github-token: ${{ secrets.GITHUB_TOKEN }}
#
#
name: CI for Java Project

on:
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '17'

- name: Install dependencies and run tests
run: mvn install -B

- name: Run tests
run: mvn test --no-transfer-progress

javadoc:
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '17'

- name: Generate Javadoc
run: mvn javadoc:javadoc --no-transfer-progress

- name: Verify Javadoc
run: |
if [ ! -d target/site/apidocs ]; then
echo "Javadoc failed to compile!"
exit 1
fi

deploy:
runs-on: ubuntu-latest

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

- name: Set up SSH for deploy key
run: |
mkdir -p ~/.ssh
echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/deploy_key
chmod 600 ~/.ssh/deploy_key
ssh-keyscan github.com >> ~/.ssh/known_hosts
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock

- name: Generate Javadoc
run: mvn javadoc:javadoc --no-transfer-progress

- name: Push Javadoc to GitHub Pages
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
rm -rf docs/apidocs
mv target/site/apidocs docs/apidocs
git add docs/apidocs
git commit -m "Update Javadoc"
git push origin main
env:
GIT_SSH_COMMAND: "ssh -i ~/.ssh/deploy_key -o IdentitiesOnly=yes"
32 changes: 0 additions & 32 deletions .github/workflows/publish.yml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/test.yml

This file was deleted.

6 changes: 0 additions & 6 deletions configs/config_Tap-And-Eat-MicroServices.json

This file was deleted.

6 changes: 0 additions & 6 deletions configs/config_apache-spring-boot-microservice-example.json

This file was deleted.

6 changes: 0 additions & 6 deletions configs/config_blog-microservices.json

This file was deleted.

6 changes: 0 additions & 6 deletions configs/config_microservice-kafka.json

This file was deleted.

6 changes: 0 additions & 6 deletions configs/config_microservice.json

This file was deleted.

6 changes: 0 additions & 6 deletions configs/config_microservices-sample.json

This file was deleted.

6 changes: 0 additions & 6 deletions configs/config_piggymetrics.json

This file was deleted.

6 changes: 0 additions & 6 deletions configs/config_sample-spring-oauth2-microservices.json

This file was deleted.

6 changes: 0 additions & 6 deletions configs/config_spring-boot-microservices-workshop.json

This file was deleted.

6 changes: 0 additions & 6 deletions configs/config_spring-cloud-netflix-example.json

This file was deleted.

6 changes: 0 additions & 6 deletions configs/config_spring-netflix-oss-microservices.json

This file was deleted.

6 changes: 0 additions & 6 deletions configs/config_spring-petclinic-microservices.json

This file was deleted.

6 changes: 0 additions & 6 deletions configs/config_trainticket_gabriel.json

This file was deleted.

File renamed without changes.
10 changes: 10 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<title>My Project Documentation</title>
</head>
<body>
<h1>Welcome to My Project</h1>
<p>Navigate to the <a href="javadoc/index.html">API Documentation</a>.</p>
</body>
</html>
File renamed without changes.
Loading
Loading