mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-11-25 18:42:09 +00:00
5e3952da92
Bumps the github-actions group with 2 updates: [actions/checkout](https://github.com/actions/checkout) and [gradle/gradle-build-action](https://github.com/gradle/gradle-build-action). Updates `actions/checkout` from 3 to 4 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) Updates `gradle/gradle-build-action` from 2.7.1 to 2.8.0 - [Release notes](https://github.com/gradle/gradle-build-action/releases) - [Commits](https://github.com/gradle/gradle-build-action/compare/v2.7.1...v2.8.0) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: gradle/gradle-build-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com>
65 lines
1.9 KiB
YAML
65 lines
1.9 KiB
YAML
name: Demo Job Summary, for Gradle builds
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
|
|
env:
|
|
GRADLE_BUILD_ACTION_CACHE_DEBUG_ENABLED: true
|
|
|
|
jobs:
|
|
run-gradle-builds:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@v4
|
|
- name: Build distribution
|
|
shell: bash
|
|
run: |
|
|
npm install
|
|
npm run build
|
|
- name: Setup Gradle
|
|
uses: ./
|
|
- name: Build kotlin-dsl project
|
|
working-directory: .github/workflow-samples/kotlin-dsl
|
|
run: ./gradlew assemble
|
|
- name: Build kotlin-dsl project without Build Scan®
|
|
working-directory: .github/workflow-samples/kotlin-dsl
|
|
run: ./gradlew assemble check --no-scan
|
|
- name: Build kotlin-dsl project with Build Scan® publish failure
|
|
working-directory: .github/workflow-samples/kotlin-dsl
|
|
run: ./gradlew check -Dgradle.enterprise.url=https://not.valid.server
|
|
- name: Build groovy-dsl project
|
|
working-directory: .github/workflow-samples/groovy-dsl
|
|
run: ./gradlew assemble
|
|
- name: Build kotlin-dsl project with multiple gradle invocations
|
|
working-directory: .github/workflow-samples/kotlin-dsl
|
|
run: |
|
|
./gradlew tasks --no-daemon
|
|
./gradlew help check
|
|
- name: Fail groovy-dsl project
|
|
working-directory: .github/workflow-samples/groovy-dsl
|
|
continue-on-error: true
|
|
run: ./gradlew not-a-real-task
|
|
|
|
pre-existing-gradle-home:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@v4
|
|
- name: Build distribution
|
|
shell: bash
|
|
run: |
|
|
npm install
|
|
npm run build
|
|
- name: Pre-create Gradle User Home
|
|
shell: bash
|
|
run: |
|
|
mkdir ~/.gradle
|
|
mkdir ~/.gradle/caches
|
|
touch ~/.gradle/caches/dummy.txt
|
|
- name: Setup Gradle
|
|
uses: ./
|
|
- name: Run build
|
|
working-directory: .github/workflow-samples/groovy-dsl
|
|
run: ./gradlew assemble
|