chore: update load balancing #61
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: test-backend | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
jobs: | |
test-backend: | |
runs-on: ubuntu-22.04 | |
steps: | |
#checkout your github code using actions/[email protected] | |
- name: Checkout code | |
uses: actions/[email protected] | |
#do the same with another action (actions/setup-java@v3) that enable to setup jdk 17 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
architecture: 'x64' | |
#finally build your app with the latest command | |
- name: Build and test simple-api-student with Maven | |
run: mvn -B verify sonar:sonar -Dsonar.projectKey=cpe-lyon-12345_ci-cd -Dsonar.organization=cpe-lyon-12345 -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${{ secrets.SONAR_TOKEN }} --file ./TP01/simple-api-student-main/pom.xml |