Skip to content

Commit

Permalink
fix: set up Java for backend in .yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
tungkhanhh committed Sep 29, 2024
1 parent d212cd3 commit 39cb3a3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Node.js for Frontend
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: '20.17.0'

Expand All @@ -30,20 +30,22 @@ jobs:
npm run build
- name: Set up Java for Backend
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
distribution: 'oracle'
java-version: '22.0.2'

- name: Build Backend
- name: Build Backend with Maven
run: |
cd backend
mvnw package
mvn -B package --file pom.xml
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: akhileshns/[email protected]
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
Expand All @@ -56,4 +58,4 @@ jobs:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
heroku_app_name: ${{secrets.HEROKU_BACKEND_APP_NAME}}
heroku_email: ${{secrets.HEROKU_EMAIL}}
appdir: "backend"
appdir: "backend"
4 changes: 2 additions & 2 deletions backend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<properties>
<maven.compiler.release>11</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>

<version.io.quarkus>3.13.2</version.io.quarkus>
<version.ai.timefold.solver>1.13.0</version.ai.timefold.solver>
Expand Down

0 comments on commit 39cb3a3

Please sign in to comment.