From 716332a2ea060ef0b9303cdfe41079b347a3947e Mon Sep 17 00:00:00 2001 From: Johannes Beck Date: Tue, 19 Mar 2024 19:17:19 +0100 Subject: [PATCH] Create testcontainers.yaml --- .github/workflows/testcontainers.yaml | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/testcontainers.yaml 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