Skip to content

Add some debug

Add some debug #11

name: Gradle Build & Deploy - Develop
on:
push:
branches:
- 'develop'
- 'feature-**/*'
- 'bugfix-**/*'
- 'chore-**/*'
- 'doc-**/*'
- 'hotfix-**/*'
- 'dependabot/**/*'
jobs:
build-and-test:
permissions:
contents: 'read'
id-token: 'write'
runs-on: ubuntu-latest
steps:
- name: 'πŸ›’ Checkout'
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 'πŸ“ Set up Node LTS'
uses: actions/setup-node@v4
with:
node-version: '20'
- name: 'β˜•οΈ Set up GraalVM 21'
uses: graalvm/[email protected]
with:
distribution: 'graalvm'
java-version: '21'
- name: 'πŸͺ£ Cache SonarQube packages'
uses: actions/cache@v4
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: 'πŸͺ£ Cache Gradle packages'
uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: '🐳 Setup Gradle'
uses: gradle/actions/setup-gradle@v4
- name: '🐳 Validate Gradle Wrapper'
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
# Without the check task (or similar) we wouldn't be running the UI tests
- name: '🐳 Gradle run tests'
uses: gradle/gradle-build-action@4137be6a8bf7d7133955359dbd952c0ca73b1021
with:
arguments: tasks
# If the tests pass, and we're on the develop branch, then deploy the regular image to Google
deploy:
uses: ./.github/workflows/gradle-deploy-develop.yml
needs: [build-and-test]
if: github.ref == 'refs/heads/develop'
# If the tests pass, and we're on the develop branch, then deploy the native image to Google
deploy-native:
uses: './.github/workflows/gradle-deploy-native-develop.yml'
if: github.ref == 'refs/heads/develop' || github.ref_name == 'feature-2532/graal'
needs: [build-and-test]
# When finished, do something so the pipeline goes green
finalize:
runs-on: ubuntu-latest
needs: [deploy, deploy-native]
if: always() && !failure() && !cancelled()
steps:
- name: 'βœ… Finalize Deployment'
run: echo "Deployment of develop branch completed successfully."