Skip to content

Bump actions/setup-java from 3 to 4 #72

Bump actions/setup-java from 3 to 4

Bump actions/setup-java from 3 to 4 #72

Workflow file for this run

name: Gradle Hero
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
cache: gradle
- name: Build theme-park-api
run: ./gradlew build
working-directory: theme-park-api
- name: Build theme-park-manager
run: ./gradlew build
working-directory: theme-park-manager
- name: Build theme-park-manager-refactored
run: ./gradlew build
working-directory: theme-park-manager-refactored
- name: Build theme-park-rides
run: ./gradlew gD
working-directory: theme-park-rides
- name: Build theme-park-rides-kotlin
run: ./gradlew gD
working-directory: theme-park-rides-kotlin
- name: Build theme-park-rides-status
run: ./gradlew build
working-directory: theme-park-rides-status
- name: Build theme-park-rides-with-zip
run: ./gradlew gD zD
working-directory: theme-park-rides-with-zip
- name: Build theme-park-rides-with-zip-fixed
run: ./gradlew gD zD
working-directory: theme-park-rides-with-zip-fixed
- name: Build file-diff-plugin
run: ./gradlew build
working-directory: file-diff-plugin
- name: Build gradle-in-the-real-world/code-coverage
run: ./gradlew build
working-directory: gradle-in-the-real-world/code-coverage
- name: Build gradle-in-the-real-world/code-style
run: ./gradlew assemble # deliberately not running check
working-directory: gradle-in-the-real-world/code-style
- name: Build gradle-in-the-real-world/code-quality
run: ./gradlew assemble # deliberately not running check
working-directory: gradle-in-the-real-world/code-quality
- name: Build gradle-in-the-real-world/docker-image
run: ./gradlew bootBuildImage
working-directory: gradle-in-the-real-world/docker-image
release:
needs: test
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@v3
- name: set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
cache: gradle
- name: Build theme-park-manager
run: ./gradlew build
working-directory: theme-park-manager
- name: Archive UI
uses: actions/upload-artifact@v3
with:
name: ui
path: theme-park-manager/ui/build/course-downloadable
retention-days: 180
- name: Configure Gradle Hero AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::299404798587:role/gradle-hero-website-initial-AssetsS3BucketRole-149Y5H75V3G6Z
aws-region: eu-west-1
- name: Copy downloadable to Gradle Hero S3 Bucket
run: aws s3 cp theme-park-manager/ui/build/ui.zip s3://gradle-hero-website-assets/gradle-hero/