-
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, application-prod.yml, application.yml and deploy-app.yml Co-authored-by: Štěpán Moc <[email protected]>
- Loading branch information
Showing
11 changed files
with
37 additions
and
41 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,29 +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: Set execute permissions for backend gradlew | ||
run: chmod +x gradlew | ||
|
||
- 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
Empty file.
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 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 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 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export const environment = { | ||
baseUrl: 'https://moc-backend-weather-app-d8c5764193db.herokuapp.com/', | ||
baseUrl: 'http://www.weather-app-backend.moc-backend.cz/', | ||
production: true, | ||
version: '1.0.0' | ||
}; |