Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 17 additions & 8 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,17 @@ jobs:
run_tests:
name: Run Tests
runs-on: ubuntu-latest
timeout-minutes: 15
env:
DB_CONN_STR: ${{ vars.DB_CONN_STR }}
DB_USERNAME: ${{ vars.DB_USERNAME }}
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
strategy:
fail-fast: false
matrix:
java-version: ["17", "21"]
steps:
- name: Update repositories
run: |
sudo apt update || echo "apt-update failed" # && apt -y upgrade

- name: Checkout ${{ github.event.repository.name }}
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up JDK ${{ matrix.java-version }}
Expand All @@ -40,11 +38,22 @@ jobs:
with:
gradle-home-cache-cleanup: true

- name: Make Gradle wrapper executable
run: chmod +x gradlew

- name: Run Gradle Tests
id: run
run: |
chmod +x gradlew
./gradlew clean test --info --stacktrace --configuration-cache
run: ./gradlew clean test --stacktrace

- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results-java-${{ matrix.java-version }}
path: |
build/reports/tests/
build/test-results/
retention-days: 7

- name: Report Status
if: always()
Expand Down