From 87d70c1e4fc7a442ad10b43bbff68070246e7b42 Mon Sep 17 00:00:00 2001 From: Oscar Mira Date: Sun, 26 Jan 2025 20:17:00 +0100 Subject: [PATCH] build: add test.yml workflow --- .github/workflows/test.yml | 44 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..add2ae4 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,44 @@ +name: Test + +on: + pull_request: + push: + branches: + - '**' + paths-ignore: + - 'README.md' + - '.github/FUNDING.yml' + - '.github/ISSUE_TEMPLATE/**' + +permissions: + contents: read + +jobs: + wrapper_validation: + name: Validate Gradle wrapper + runs-on: ubuntu-24.04 + + steps: + - uses: actions/checkout@v4 + + - name: Run wrapper validation + uses: gradle/actions/wrapper-validation@v3 + + test: + name: Run tests + runs-on: ubuntu-24.04 + + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Set up JDK 21 + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 21 + cache: gradle + + - name: Run tests + run: ./gradlew build --no-daemon