2022-05-29 20:58:14 +00:00
|
|
|
name: demo-failure-cases
|
2021-09-12 16:52:53 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
2024-04-10 13:23:03 +00:00
|
|
|
build-distribution:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout sources
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build and upload distribution
|
|
|
|
uses: ./.github/actions/build-dist
|
2021-09-14 11:33:50 +00:00
|
|
|
|
2022-05-24 08:16:57 +00:00
|
|
|
failing-build:
|
2024-04-10 13:23:03 +00:00
|
|
|
needs: build-distribution
|
2022-05-24 08:16:57 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout sources
|
2023-09-04 22:34:02 +00:00
|
|
|
uses: actions/checkout@v4
|
2024-04-10 13:23:03 +00:00
|
|
|
- name: Initialize integ-test
|
|
|
|
uses: ./.github/actions/init-integ-test
|
|
|
|
|
2022-05-24 08:16:57 +00:00
|
|
|
- name: Test build failure
|
2024-01-25 18:49:04 +00:00
|
|
|
uses: ./setup-gradle
|
2022-05-24 08:16:57 +00:00
|
|
|
continue-on-error: true
|
|
|
|
with:
|
2022-05-24 14:51:53 +00:00
|
|
|
build-root-directory: .github/workflow-samples/kotlin-dsl
|
2022-05-24 08:16:57 +00:00
|
|
|
arguments: not-a-valid-task
|
|
|
|
|
2021-09-12 16:52:53 +00:00
|
|
|
wrapper-missing:
|
2024-04-10 13:23:03 +00:00
|
|
|
needs: build-distribution
|
2021-09-12 16:52:53 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout sources
|
2023-09-04 22:34:02 +00:00
|
|
|
uses: actions/checkout@v4
|
2024-04-10 13:23:03 +00:00
|
|
|
- name: Initialize integ-test
|
|
|
|
uses: ./.github/actions/init-integ-test
|
|
|
|
|
2021-09-12 16:52:53 +00:00
|
|
|
- name: Test wrapper missing
|
2024-01-25 18:49:04 +00:00
|
|
|
uses: ./setup-gradle
|
2021-09-15 23:57:43 +00:00
|
|
|
continue-on-error: true
|
2021-09-12 16:52:53 +00:00
|
|
|
with:
|
2022-04-05 15:45:02 +00:00
|
|
|
build-root-directory: .github/workflow-samples/no-wrapper
|
2021-09-12 16:52:53 +00:00
|
|
|
arguments: help
|
|
|
|
|
|
|
|
bad-configuration:
|
2024-04-10 13:23:03 +00:00
|
|
|
needs: build-distribution
|
2021-09-12 16:52:53 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout sources
|
2023-09-04 22:34:02 +00:00
|
|
|
uses: actions/checkout@v4
|
2024-04-10 13:23:03 +00:00
|
|
|
- name: Initialize integ-test
|
|
|
|
uses: ./.github/actions/init-integ-test
|
|
|
|
|
2021-09-12 16:52:53 +00:00
|
|
|
- name: Test bad config value
|
2024-01-25 18:49:04 +00:00
|
|
|
uses: ./setup-gradle
|
2021-09-15 23:57:43 +00:00
|
|
|
continue-on-error: true
|
2021-09-12 16:52:53 +00:00
|
|
|
with:
|
2022-04-05 15:45:02 +00:00
|
|
|
build-root-directory: .github/workflow-samples/no-wrapper
|
2021-09-12 16:52:53 +00:00
|
|
|
arguments: help
|
2021-09-12 20:26:38 +00:00
|
|
|
cache-disabled: yes
|