From b81133ada118f966ea81b0a15c58f886ccd02d4a Mon Sep 17 00:00:00 2001 From: Jonas Hoppe Date: Fri, 8 Jul 2022 19:09:37 +0200 Subject: [PATCH] #1 installing ci tree, my dog stepped on a bee --- .github/workflows/main.yml | 41 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1f299ca..045f564 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,8 +21,47 @@ concurrency: cancel-in-progress: true jobs: + build: + runs-on: ubuntu-latest + steps: + - name: set gradle opts + uses: allenevans/set-env@v2.0.0 + with: + GRADLE_OPTS: '-Dorg.gradle.daemon=false' + - name: set gradle user home + run: export GRADLE_USER_HOME=`pwd`/.gradle + - uses: actions/checkout@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 + - name: Build with Gradle + run: ./gradlew --build-cache clean buildPlugin + - name: upload build artifacts + uses: actions/upload-artifact@v3 + with: + name: build + path: build/distributions tests: runs-on: ubuntu-latest + needs: + - build steps: - name: install tree run: sudo apt update && sudo apt install tree -y @@ -53,5 +92,7 @@ jobs: env: FILE_NAME: ".ssl-keys/password.txt" FILE_DATA: $PASSWORD_TXT + - name: build twig cache + run: ./build_twig_cache.sh - name: Run tests run: ./gradlew test \ No newline at end of file