From 4993db0647014159a90f2d15887dbd7a108eeee3 Mon Sep 17 00:00:00 2001 From: Jonas Hoppe Date: Sat, 9 Jul 2022 11:32:24 +0200 Subject: [PATCH] #1 add gradle caching action and creds for lint job --- .github/workflows/main.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1c479cb..2a66ee0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -67,6 +67,10 @@ jobs: name: build path: build/distributions + - uses: gradle/gradle-build-action@v2 + with: + gradle-version: 7.4 + - name: upload gradle artifacts uses: actions/upload-artifact@v3 with: @@ -121,6 +125,10 @@ jobs: - name: build twig cache run: ./build_twig_cache.sh + - uses: gradle/gradle-build-action@v2 + with: + gradle-version: 7.4 + - name: Run tests run: ./gradlew test @@ -137,6 +145,34 @@ jobs: - name: Download build artifact uses: actions/download-artifact@v3 + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + + - name: create chain credentials + uses: finnp/create-file-action@1.0.0 + env: + FILE_NAME: ".ssl-keys/chain.crt" + FILE_DATA: $CHAIN_CERT + + - name: create chain credentials + uses: finnp/create-file-action@1.0.0 + env: + FILE_NAME: ".ssl-keys/private.pem" + FILE_DATA: $PRIVATE_PEM + + - name: create chain credentials + uses: finnp/create-file-action@1.0.0 + env: + FILE_NAME: ".ssl-keys/password.txt" + FILE_DATA: $PASSWORD_TXT + + - uses: gradle/gradle-build-action@v2 + with: + gradle-version: 7.4 + - name: run linter run: ./gradlew check