Add integration test #506
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: Run Integration Tests | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| integration-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Step 1: Checkout the repository | |
| - name: Checkout | |
| uses: actions/checkout@v3.5.2 | |
| # Step 2: Set up JDK 8 | |
| - name: Set up JDK 8 | |
| uses: actions/setup-java@v3 | |
| with: | |
| distribution: temurin | |
| java-version: 8 | |
| # Step 3: Cache Maven dependencies | |
| - name: Cache Maven | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.m2/repository | |
| key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: ${{ runner.os }}-maven- | |
| # Step 4: Run JUnit Integration Tests | |
| - name: Run Integration Tests | |
| run: mvn verify -Dtest.includes="**/integration/*Test.java" |