Skip to content

Update unit-test.yml #13

Update unit-test.yml

Update unit-test.yml #13

Workflow file for this run

name: Run All Tests
on: [push, pull_request]
jobs:

Check failure on line 5 in .github/workflows/unit-test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/unit-test.yml

Invalid workflow file

You have an error in your yaml syntax on line 5
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: temurin
java-version: '17'
- name: Install Groovy
run: |
curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk install groovy
- 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
echo "All tests executed!"