Skip to content

Commit e4e5f33

Browse files
authored
Refactor Quarkus Ecosystem CI workflow to use reusable config (#2085)
1 parent ee264f4 commit e4e5f33

1 file changed

Lines changed: 16 additions & 35 deletions

File tree

Lines changed: 16 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,23 @@
1-
name: Quarkus ecosystem CI
2-
1+
name: "Quarkus ecosystem CI"
32
on:
3+
workflow_dispatch:
44
watch:
55
types: [started]
6-
workflow_dispatch:
76

8-
env:
9-
ECOSYSTEM_CI_REPO: quarkusio/quarkus-ecosystem-ci
10-
ECOSYSTEM_CI_REPO_FILE: context.yaml
11-
ECOSYSTEM_CI_REPO_PATH: quarkus-super-heroes
7+
permissions:
8+
contents: read
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
1213

1314
jobs:
1415
build:
15-
name: "Build"
16-
runs-on: ubuntu-latest
17-
if: github.actor == 'quarkusbot' || github.event_name == 'workflow_dispatch'
18-
steps:
19-
- name: Set up Java
20-
uses: actions/setup-java@v5
21-
with:
22-
java-version: 21
23-
distribution: temurin
24-
25-
- name: Checkout repo
26-
uses: actions/checkout@v6
27-
with:
28-
path: current-repo
29-
30-
- name: Checkout Ecosystem
31-
uses: actions/checkout@v6
32-
with:
33-
repository: ${{ env.ECOSYSTEM_CI_REPO }}
34-
path: ecosystem-ci
35-
36-
- name: Setup and Run Tests
37-
run: ./ecosystem-ci/setup-and-test
38-
env:
39-
ECOSYSTEM_CI_TOKEN: ${{ secrets.ECOSYSTEM_CI_REPORT_TOKEN }}
40-
QUARKUS_VERSION_POM_PATH: rest-fights
41-
QUARKUS_VERSION_POM_PROPERTY: quarkus.platform.version
42-
# ALTERNATIVE: 3.14.x
16+
uses: quarkusio/.github/.github/workflows/quarkus-ecosystem-ci.yml@main
17+
secrets: inherit
18+
with:
19+
ecosystem_ci_repo_path: quarkus-super-heroes
20+
java_version: 21
21+
quarkus_version_pom_path: rest-fights
22+
quarkus_version_pom_property: quarkus.platform.version
23+

0 commit comments

Comments
 (0)