Skip to content

Commit

Permalink
Using groovy for test
Browse files Browse the repository at this point in the history
  • Loading branch information
anaiberta authored Nov 26, 2024
1 parent 556f8c2 commit 12bb88b
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Unit Test
name: Run All Tests

on: [push, pull_request]

Expand All @@ -7,24 +7,24 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
- name: Checkout code
uses: actions/checkout@v4

- name: Set up JDK 11
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: temurin
java-version: '17'

- name: Cache Gradle packages
uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: ${{ runner.os }}-gradle

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Run All Tests
run: |
# Ensure the test directory is set up correctly
echo "Running all Groovy tests..."
# Run all Groovy test files in the tests directory
for testFile in ./test/*.groovy; do
echo "Running $testFile..."
groovy "$testFile"
done
- name: Run unit tests
run: ./gradlew test
echo "All tests executed!"

0 comments on commit 12bb88b

Please sign in to comment.