This repository was archived by the owner on Oct 18, 2025. It is now read-only.
Merge pull request #4 from CARPI-Bot/main #16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: tests | |
| on: push | |
| jobs: | |
| run_tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout the repository | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' | |
| - name: Setup env.properties | |
| run: | | |
| echo "DB_URL=${{ secrets.DB_URL }}" >> src/main/resources/env.properties | |
| echo "DB_USERNAME=${{ secrets.DB_USERNAME }}" >> src/main/resources/env.properties | |
| echo "DB_PASSWORD=${{ secrets.DB_PASSWORD }}" >> src/main/resources/env.properties | |
| - name: Cache Maven packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.m2 | |
| key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: ${{ runner.os }}-m2 | |
| - name: Run tests with Maven | |
| run: mvn -B test --file pom.xml |