-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
48 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,78 +21,124 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
all: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: set gradle opts | ||
uses: allenevans/[email protected] | ||
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/[email protected] | ||
env: | ||
FILE_NAME: ".ssl-keys/chain.crt" | ||
FILE_DATA: $CHAIN_CERT | ||
|
||
- name: create chain credentials | ||
uses: finnp/[email protected] | ||
env: | ||
FILE_NAME: ".ssl-keys/private.pem" | ||
FILE_DATA: $PRIVATE_PEM | ||
|
||
- name: create chain credentials | ||
uses: finnp/[email protected] | ||
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 | ||
|
||
- name: upload gradle artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: gradle | ||
path: .gradle | ||
|
||
tests: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- build | ||
steps: | ||
- name: install tree | ||
run: sudo apt update && sudo apt install tree -y | ||
|
||
- name: set gradle opts | ||
uses: allenevans/[email protected] | ||
with: | ||
GRADLE_OPTS: '-Dorg.gradle.daemon=false' | ||
|
||
- name: set gradle user home | ||
run: export GRADLE_USER_HOME=`pwd`/.gradle | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- 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/[email protected] | ||
env: | ||
FILE_NAME: ".ssl-keys/chain.crt" | ||
FILE_DATA: $CHAIN_CERT | ||
|
||
- name: create chain credentials | ||
uses: finnp/[email protected] | ||
env: | ||
FILE_NAME: ".ssl-keys/private.pem" | ||
FILE_DATA: $PRIVATE_PEM | ||
|
||
- name: create chain credentials | ||
uses: finnp/[email protected] | ||
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 | ||
run: ./gradlew test | ||
|
||
style-lint: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- build | ||
steps: | ||
- name: set gradle user home | ||
run: export GRADLE_USER_HOME=`pwd`/.gradle | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- name: Download build artifact | ||
uses: actions/download-artifact@v3 | ||
|
||
- name: run linter | ||
run: ./gradlew check | ||
|
||
- name: run lint plugin xml | ||
run: ./gradlew verifyPlugin |