Skip to content

Commit

Permalink
#1 add gradle caching action and creds for lint job
Browse files Browse the repository at this point in the history
  • Loading branch information
pwnyprod committed Jul 9, 2022
1 parent 4a28f82 commit 4993db0
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

Expand All @@ -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/[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

- uses: gradle/gradle-build-action@v2
with:
gradle-version: 7.4

- name: run linter
run: ./gradlew check

Expand Down

0 comments on commit 4993db0

Please sign in to comment.