From 5c3955413007c00021b27d7cb0016db4ef283745 Mon Sep 17 00:00:00 2001 From: fiereu Date: Mon, 5 Jan 2026 00:08:54 +0100 Subject: [PATCH] add Test workflow to run tests on push and pull request --- .forgejo/workflows/test.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .forgejo/workflows/test.yml diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml new file mode 100644 index 0000000..7bbfde7 --- /dev/null +++ b/.forgejo/workflows/test.yml @@ -0,0 +1,29 @@ +name: Run Tests + +on: + push: + branches: + - main + pull_request: + workflow_dispatch: + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up JDK + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '24' + cache: 'gradle' + + - name: Make gradlew executable + run: chmod +x ./gradlew + + - name: Run tests + run: ./gradlew test