This commit is contained in:
parent
bd152dbf12
commit
ae6683dfa4
3 changed files with 56 additions and 0 deletions
28
.forgejo/workflows/UnitTestsFeeCalculator.yml
Normal file
28
.forgejo/workflows/UnitTestsFeeCalculator.yml
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
name: Gradle Test
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- "*" # Runs on all branches
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image: data.forgejo.org/oci/node:20-bullseye
|
||||||
|
options: "--user root"
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install JDK 17 Manually
|
||||||
|
run: |
|
||||||
|
apt update
|
||||||
|
apt install -y openjdk-17-jdk
|
||||||
|
java -version
|
||||||
|
|
||||||
|
- name: Grant execute permission for Gradle wrapper
|
||||||
|
run: chmod +x feeCalculator/gradlew
|
||||||
|
|
||||||
|
- name: Run Gradle tests
|
||||||
|
run: cd feeCalculator && ./gradlew test
|
||||||
28
.forgejo/workflows/UnitTestsPanier.yml
Normal file
28
.forgejo/workflows/UnitTestsPanier.yml
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
name: Gradle Test
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- "*" # Runs on all branches
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image: data.forgejo.org/oci/node:20-bullseye
|
||||||
|
options: "--user root"
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install JDK 17 Manually
|
||||||
|
run: |
|
||||||
|
apt update
|
||||||
|
apt install -y openjdk-17-jdk
|
||||||
|
java -version
|
||||||
|
|
||||||
|
- name: Grant execute permission for Gradle wrapper
|
||||||
|
run: chmod +x panier/gradlew
|
||||||
|
|
||||||
|
- name: Run Gradle tests
|
||||||
|
run: cd panier && ./gradlew test
|
||||||
0
gradlew
vendored
Normal file → Executable file
0
gradlew
vendored
Normal file → Executable file
Loading…
Add table
Reference in a new issue