Skip to content

Try and fix

Try and fix #4

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/[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: '🐳 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: check
# If the tests pass, and we're on the develop branch, then deploy the regular image to Google
deploy:
runs-on: ubuntu-latest
needs: [build-and-test]
if: github.ref == 'refs/heads/develop'
uses: ./.github/workflows/gradle-deploy-develop.yml

Check failure on line 55 in .github/workflows/gradle-build-develop.yml

View workflow run for this annotation

GitHub Actions / Gradle Build & Deploy - Develop

Invalid workflow file

The workflow is not valid. .github/workflows/gradle-build-develop.yml (Line: 55, Col: 5): Unexpected value 'uses' .github/workflows/gradle-build-develop.yml (Line: 62, Col: 5): Unexpected value 'uses'
# If the tests pass, and we're on the develop branch, then deploy the native image to Google
deploy-native:
runs-on: ubuntu-latest
needs: [build-and-test]
if: github.ref == 'refs/heads/develop' || github.ref_name == 'feature-2532/graal'
uses: './.github/workflows/gradle-deploy-native-develop.yml'
# 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."