-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changed build-frontend.yml and build-backend.yml
- Loading branch information
Showing
6 changed files
with
29 additions
and
85 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,9 @@ run-name: "Run ${{github.run_id}}, triggered by ${{github.actor}}" | |
|
||
on: | ||
push: | ||
branches: ["main"] | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: ["main"] | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
backend: | ||
|
@@ -16,27 +16,22 @@ jobs: | |
run: | ||
working-directory: backend | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK 17 for backend | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: 17 | ||
distribution: temurin | ||
- name: Build and test backend | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
cache: 'gradle' | ||
cache-dependency-path: | | ||
backend/*.gradle* | ||
backend/**/gradle-wrapper.properties | ||
- run: ./gradlew build --no-daemon | ||
|
||
- name: setup Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
with: | ||
generate-job-summary: true | ||
add-job-summary-as-pr-comment: on-failure | ||
cache-disabled: true | ||
|
||
- name: Build backend and run tests with Gradle Wrapper | ||
run: ./gradlew build | ||
|
||
- name: Upload coverage reports to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
flags: backend | ||
file: backend/build/reports/jacoco/test/html/jacocoTestReport.xml | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
flags: backend | ||
file: backend/build/reports/jacoco/test/html/jacocoTestReport.xml |
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
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
This file was deleted.
Oops, something went wrong.
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
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