Skip to content

Commit

Permalink
BXMSPROD-1601 [main] provide FDB github action for RHBA project (#585)
Browse files Browse the repository at this point in the history
* BXMSPROD-1601 [main] provide FDB github action for RHBA project

* pull_request_template.md updated

* pointing to kogito-pipelines
  • Loading branch information
Ginxo authored Jan 10, 2022
1 parent a43fdc7 commit 92836ef
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ How to retest this PR or trigger a specific build:

* <b>a pull request</b> please add comment: <b>Jenkins retest this</b>

* <b>a full downstream build</b> please add comment: <b>Jenkins run fdb</b>
* for a <b>full downstream build</b>
* for <b>jenkins</b> job: please add comment: <b>Jenkins run fdb</b>
* for <b>github actions</b> job: add the label `run_fdb`

* <b>a compile downstream build</b> please add comment: <b>Jenkins run cdb</b>

Expand Down
49 changes: 49 additions & 0 deletions .github/workflows/full-downstream.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build Chain

on:
pull_request:
types: [labeled]
branches:
- main
paths-ignore:
- 'LICENSE*'
- '.gitignore'
- '*.md'
- '*.txt'

jobs:
build-chain:
if: contains(github.event.pull_request.labels.*.name, 'run_fdb')
concurrency:
group: fdb-${{ github.head_ref }}
cancel-in-progress: true
strategy:
matrix:
os: [ubuntu-latest]
java-version: [11]
maven-version: ['3.8.1']
fail-fast: false
runs-on: ${{ matrix.os }}
name: Full downstream build
steps:
- name: Clean Disk Space
uses: kiegroup/kogito-pipelines/.ci/actions/ubuntu-disk-space@main
if: ${{ matrix.os == 'ubuntu-latest' }}
- name: Support long paths
if: ${{ matrix.os == 'windows-latest' }}
uses: kiegroup/kogito-pipelines/.ci/actions/long-paths@main
- name: Java and Maven Setup
uses: kiegroup/kogito-pipelines/.ci/actions/maven@main
with:
java-version: ${{ matrix.java-version }}
maven-version: ${{ matrix.maven-version }}
cache-key-prefix: ${{ runner.os }}-${{ matrix.java-version }}-maven${{ matrix.maven-version }}
- name: Build Chain
uses: kiegroup/kogito-pipelines/.ci/actions/build-chain@main
with:
annotations-prefix: ${{ runner.os }}-${{ matrix.java-version }}/${{ matrix.maven-version }}
github-token: "${{ secrets.GITHUB_TOKEN }}"
flow-type: full-downstream
- name: Surefire Report
uses: kiegroup/kogito-pipelines/.ci/actions/surefire-report@main
if: ${{ always() }}
12 changes: 6 additions & 6 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,24 @@ jobs:
name: ${{ matrix.os }} - Java ${{ matrix.java-version }} - Maven
steps:
- name: Clean Disk Space
uses: kiegroup/droolsjbpm-build-bootstrap/.ci/actions/disk-space@main
uses: kiegroup/kogito-pipelines/.ci/actions/disk-space@main
- name: Support long paths
if: ${{ matrix.os == 'windows-latest' }}
uses: kiegroup/droolsjbpm-build-bootstrap/.ci/actions/long-paths@main
uses: kiegroup/kogito-pipelines/.ci/actions/long-paths@main
- name: Java and Maven Setup
uses: kiegroup/droolsjbpm-build-bootstrap/.ci/actions/java@main
uses: kiegroup/kogito-pipelines/.ci/actions/java@main
with:
java-version: ${{ matrix.java-version }}
maven-version: ${{ matrix.maven-version }}
- name: Cache Maven
uses: kiegroup/droolsjbpm-build-bootstrap/.ci/actions/cache-maven@main
uses: kiegroup/kogito-pipelines/.ci/actions/cache-maven@main
with:
key-prefix: ${{ runner.os }}-${{ matrix.java-version }}-maven${{ matrix.maven-version }}
- name: Build Chain
uses: kiegroup/droolsjbpm-build-bootstrap/.ci/actions/build-chain@main
uses: kiegroup/kogito-pipelines/.ci/actions/build-chain@main
with:
annotations-prefix: ${{ runner.os }}-${{ matrix.java-version }}/${{ matrix.maven-version }}
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Surefire Report
uses: kiegroup/droolsjbpm-build-bootstrap/.ci/actions/surefire-report@main
uses: kiegroup/kogito-pipelines/.ci/actions/surefire-report@main
if: ${{ always() }}

0 comments on commit 92836ef

Please sign in to comment.