Skip to content

Commit

Permalink
Merge pull request #9 from duongminhhieu/gh-pages
Browse files Browse the repository at this point in the history
Update Gh-page
  • Loading branch information
duongminhhieu authored May 14, 2024
2 parents 3e60626 + 0c3da34 commit 54b8222
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/github-page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,27 +31,34 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

# Run tests

- name: Set up JDK 21
uses: actions/setup-java@v3
with:
distribution: 'temurin' # Use 'zulu' or other distributions if preferred
java-version: '21'

- name: Verify Java version
run: java -version

- name: Verify Maven version
run: mvn -version

- name: Run tests
run: mvn test -Pproduction
run: mvn test

# Generate Jacoco report
- name: Generate Jacoco report
run: mvn jacoco:report

# Setup Pages
- name: Setup Pages
uses: actions/configure-pages@v5

# Upload artifact
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload Jacoco report
path: './target/site/jacoco'

# Deploy to GitHub Pages
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 54b8222

Please sign in to comment.