From 2e533c4cdbb2cf88c8faf24aaf3e6d5bf6d4e8ef Mon Sep 17 00:00:00 2001 From: Pedro Igor Date: Wed, 17 Jun 2020 09:53:11 -0300 Subject: [PATCH] [KEYCLOAK-11330] - Quarkus Git Hub Actions --- .github/workflows/ci-x.yml | 53 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .github/workflows/ci-x.yml diff --git a/.github/workflows/ci-x.yml b/.github/workflows/ci-x.yml new file mode 100644 index 00000000000..f1dd2816cf5 --- /dev/null +++ b/.github/workflows/ci-x.yml @@ -0,0 +1,53 @@ +name: Keycloak.X CI + +on: [push, pull_request] + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: 11 + - name: Cache Maven packages + uses: actions/cache@v2 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-m2 + - name: Build + run: mvn clean install -B -e -DskipTests -Pquarkus,distribution + - name: Tar Maven Repo + shell: bash + run: tar -czvf maven-repo.tgz -C ~ .m2/repository + - name: Persist Maven Repo + uses: actions/upload-artifact@v1 + with: + name: maven-repo + path: maven-repo.tgz + + test: + name: Test + needs: build + runs-on: ubuntu-latest + env: + MAVEN_OPTS: -Xmx2048m + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: 11 + - name: Download Maven Repo + uses: actions/download-artifact@v1 + with: + name: maven-repo + path: . + - name: Extract Maven Repo + shell: bash + run: tar -xzvf maven-repo.tgz -C ~ + - name: Build testsuite + run: mvn clean install -B -Pquarkus,auth-server-quarkus -DskipTests -f testsuite/pom.xml + - name: Run base tests + run: mvn clean install -B -Pquarkus,auth-server-quarkus -f testsuite/integration-arquillian/tests/base/pom.xml | misc/log/trimmer.sh; exit ${PIPESTATUS[0]}