ci: remove wf #24
This file contains 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
name: Java CI with Maven | |
on: | |
push: | |
branches: [ "develop" ] | |
pull_request: | |
branches: [ "develop" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'corretto' | |
cache: maven | |
- name: Set up environment variables | |
env: | |
DB_URL_DOCKER: ${{ secrets.DB_URL_DOCKER }} | |
run: | | |
echo "DB_URL_DOCKER=$DB_URL_DOCKER" >> $GITHUB_ENV | |
- name: Build with Maven | |
run: mvn -B package --file pom.xml | |
- name: Run Unit Tests | |
run: mvn test | |
- name: Run Integration Tests | |
run: mvn verify -Pintegration-test | |
- name: Generate Test Report | |
run: mvn surefire-report:report-only | |
if: always() | |
- name: Upload Test Report | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: test-report | |
path: target/site/surefire-report.html | |
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive | |
# - name: Update dependency graph | |
# uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 | |
# | |
# - name: Comment PR | |
# uses: actions/github-script@v6 | |
# if: github.event_name == 'pull_request' | |
# with: | |
# github-token: ${{secrets.GITHUB_TOKEN}} | |
# script: | | |
# github.rest.issues.createComment({ | |
# issue_number: context.issue.number, | |
# owner: context.repo.owner, | |
# repo: context.repo.repo, | |
# body: '✅ Tests have completed. You can download the test report [here](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}).' | |
# }) |