Use locally built dist for demo workflows

This commit is contained in:
daz 2024-04-10 07:23:03 -06:00 committed by Daz DeBoer
parent 6a8b99d4b5
commit b64dafb1c9
3 changed files with 56 additions and 29 deletions

View file

@ -4,12 +4,23 @@ on:
workflow_dispatch:
jobs:
failing-build:
build-distribution:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Build and upload distribution
uses: ./.github/actions/build-dist
failing-build:
needs: build-distribution
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Test build failure
uses: ./setup-gradle
continue-on-error: true
@ -18,10 +29,14 @@ jobs:
arguments: not-a-valid-task
wrapper-missing:
needs: build-distribution
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Test wrapper missing
uses: ./setup-gradle
continue-on-error: true
@ -30,10 +45,14 @@ jobs:
arguments: help
bad-configuration:
needs: build-distribution
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Test bad config value
uses: ./setup-gradle
continue-on-error: true

View file

@ -2,7 +2,6 @@ name: Demo Job Summary, for Gradle builds
on:
workflow_dispatch:
push:
jobs:
many-gradle-builds:
@ -10,16 +9,9 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Build distribution
shell: bash
run: |
npm install
npm run build
working-directory: sources
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
- name: Build kotlin-dsl project
@ -51,16 +43,14 @@ jobs:
dependency-graph: generate-and-upload
successful-builds-with-no-summary:
needs: build-distribution
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Build distribution
shell: bash
run: |
npm install
npm run build
working-directory: sources
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with:
@ -73,16 +63,14 @@ jobs:
run: ./gradlew assemble check --no-scan
pre-existing-gradle-home:
needs: build-distribution
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Build distribution
shell: bash
run: |
npm install
npm run build
working-directory: sources
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Pre-create Gradle User Home
shell: bash
run: |

View file

@ -7,11 +7,23 @@ permissions:
pull-requests: write
jobs:
successful-build-with-always-comment:
build-distribution:
runs-on: ubuntu-latest
steps:
- name: Checkout project sources
- name: Checkout sources
uses: actions/checkout@v4
- name: Build and upload distribution
uses: ./.github/actions/build-dist
successful-build-with-always-comment:
needs: build-distribution
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with:
@ -22,10 +34,14 @@ jobs:
run: ./gradlew build --scan
successful-build-with-comment-on-failure:
needs: build-distribution
runs-on: ubuntu-latest
steps:
- name: Checkout project sources
- name: Checkout sources
uses: actions/checkout@v4
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with:
@ -36,10 +52,14 @@ jobs:
run: ./gradlew build --scan
failing-build-with-comment-on-failure:
needs: build-distribution
runs-on: ubuntu-latest
steps:
- name: Checkout project sources
- name: Checkout sources
uses: actions/checkout@v4
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with: