Skip to content

Tests

Tests #548

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: "10 9 * * *"
jobs:
run_tests:
name: Run Tests
runs-on: ubuntu-latest
env:
DB_CONN_STR: ${{ vars.DB_CONN_STR }}
DB_USERNAME: ${{ vars.DB_USERNAME }}
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
strategy:
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 }}
uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: "adopt"
cache: "maven"
- name: Run Maven Tests
id: run
run: |
chmod +x mvnw
./mvnw clean install -DskipTests=false -Dmaven.javadoc.skip=true -Dgpg.skip=true -B -V -e
- name: Report Status
if: always()
uses: ravsamhq/notify-slack-action@v1
with:
status: ${{ job.status }}
notify_when: "failure"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}