From 2b7c388583702a9438831e182882e1baaeebbdde Mon Sep 17 00:00:00 2001 From: alex_mclean <116386669+EatSleepProgramRepeat@users.noreply.github.com> Date: Sun, 6 Apr 2025 16:42:11 -0400 Subject: [PATCH] make GitHub run tests --- .github/workflows/test.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 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..a2cde3f --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,26 @@ +name: Run Tests on PR + +on: + pull_request: + branches: + - main # or 'master', or whatever your main branch is + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Java + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '22' # or your project's Java version + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + - name: Build and run tests + run: ./gradlew test \ No newline at end of file