Fix debug #12
Workflow file for this run
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
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." |