Ajout d'actions forgejo pour lancer les tests automatiquement
Some checks are pending
Gradle Test / test (push) Waiting to run
Some checks are pending
Gradle Test / test (push) Waiting to run
This commit is contained in:
parent
0deca9eda5
commit
3e404ea471
3 changed files with 50 additions and 0 deletions
25
.forgejo/workflows/UnitTestsFeeCalculator.yml
Normal file
25
.forgejo/workflows/UnitTestsFeeCalculator.yml
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
name: Gradle Test
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- "*" # Runs on all branches
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up JDK 17
|
||||||
|
uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
distribution: "temurin" # Use Eclipse Temurin (formerly AdoptOpenJDK)
|
||||||
|
java-version: "17" # Adjust as needed
|
||||||
|
|
||||||
|
- name: Grant execute permission for Gradle wrapper
|
||||||
|
run: chmod +x gradlew
|
||||||
|
|
||||||
|
- name: Run Gradle tests
|
||||||
|
run: cd feeCalculator && ./gradlew test
|
||||||
25
.forgejo/workflows/UnitTestsPanier.yml
Normal file
25
.forgejo/workflows/UnitTestsPanier.yml
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
name: Gradle Test
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- "*" # Runs on all branches
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up JDK 17
|
||||||
|
uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
distribution: "temurin" # Use Eclipse Temurin (formerly AdoptOpenJDK)
|
||||||
|
java-version: "17" # Adjust as needed
|
||||||
|
|
||||||
|
- name: Grant execute permission for Gradle wrapper
|
||||||
|
run: chmod +x gradlew
|
||||||
|
|
||||||
|
- name: Run Gradle tests
|
||||||
|
run: cd panier && ./gradlew test
|
||||||
0
panier/gradlew
vendored
Normal file → Executable file
0
panier/gradlew
vendored
Normal file → Executable file
Loading…
Add table
Reference in a new issue