Skip to content

See why auth isn't working... #7

See why auth isn't working...

See why auth isn't working... #7

name: Gradle Build & Deploy - Develop
on:
push:
branches:
- 'develop'
- 'feature-**/*'
- 'bugfix-**/*'
- 'chore-**/*'
- 'doc-**/*'
- 'hotfix-**/*'
- 'dependabot/**/*'
jobs:
build-and-test:
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/setup-graalvm@v1.1.8
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: '🐳 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."