diff --git a/.github/workflows/testcontainers.yaml b/.github/workflows/testcontainers.yaml new file mode 100644 index 00000000..9350feca --- /dev/null +++ b/.github/workflows/testcontainers.yaml @@ -0,0 +1,33 @@ +name: Java CI + +on: [workflow_dispatch] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 21 + uses: actions/setup-java@v4 + with: + java-version: 21 + distribution: adopt + - name: Build with Maven + run: mvn -Pgithub,default -B clean package + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Prepare IT + run: mvn -Pdocker-integration-test pre-integration-test -DskipTests + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Run IT + run: mvn -Parq-remote verify + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Publish Unit Test Results + uses: EnricoMi/publish-unit-test-result-action@v2 + if: always() + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + junit_files: target/**/TEST-*.xml