From ec7a2e1164eddf2eabbd47c354276a9c83473082 Mon Sep 17 00:00:00 2001 From: Rawi01 Date: Sun, 18 Apr 2021 15:24:43 +0200 Subject: Add integration tests --- .github/workflows/ant.yml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ant.yml b/.github/workflows/ant.yml index c7ef99ad..98826b41 100644 --- a/.github/workflows/ant.yml +++ b/.github/workflows/ant.yml @@ -100,4 +100,27 @@ jobs: ${{ runner.os }}- - name: Build with Ant - run: ant -noinput dist test.${{ matrix.version }} \ No newline at end of file + run: ant -noinput dist test.${{ matrix.version }} + + docker-integration-test: + runs-on: ubuntu-latest + strategy: + matrix: + jdk: [8, 9, 10, 11, 12, 13, 14, 15, 16] + tool: [maven, gradle, ant, bazel] + fail-fast: false + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - uses: actions/download-artifact@v2 + with: + name: lombok.jar + + - name: Build container + working-directory: ./docker + run: docker build -t lombok-${{ matrix.tool }}-jdk${{ matrix.jdk }} -f ${{ matrix.tool }}/Dockerfile . + + - name: Compile in container + run: docker run -v ./dist/lombok.jar:/workspace/lombok.jar lombok-maven-jdk16 /bin/bash -c "cd /classpath; mvn compile" \ No newline at end of file -- cgit