Skip to content

Commit cef6eaf

Browse files
authored
Reuse Ecosystem workflow (#174)
1 parent 13b9186 commit cef6eaf

1 file changed

Lines changed: 5 additions & 45 deletions

File tree

.github/workflows/quarkus-snapshot.yaml

Lines changed: 5 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -4,57 +4,17 @@ on:
44
watch:
55
types: [started]
66

7-
# For this CI to work, ECOSYSTEM_CI_TOKEN needs to contain a GitHub with rights to close the Quarkus issue that the user/bot has opened,
8-
# while 'ECOSYSTEM_CI_REPO_PATH' needs to be set to the corresponding path in the 'quarkusio/quarkus-ecosystem-ci' repository
9-
10-
env:
11-
ECOSYSTEM_CI_REPO: quarkusio/quarkus-ecosystem-ci
12-
ECOSYSTEM_CI_REPO_FILE: context.yaml
13-
JAVA_VERSION: 17
14-
15-
#########################
16-
# Repo specific setting #
17-
#########################
18-
19-
ECOSYSTEM_CI_REPO_PATH: quarkiverse-embedded-postgresql
20-
217
permissions:
228
contents: read
239

2410
concurrency:
2511
group: ${{ github.workflow }}-${{ github.ref }}
2612
cancel-in-progress: true
2713

28-
defaults:
29-
run:
30-
shell: bash
31-
3214
jobs:
3315
build:
34-
name: "Build against latest Quarkus snapshot"
35-
runs-on: ubuntu-latest
36-
# Allow <ADMIN> to manually launch the ecosystem CI in addition to the bots
37-
if: github.actor == 'quarkusbot' || github.actor == 'quarkiversebot' || github.actor == '<ADMIN>'
38-
39-
steps:
40-
- name: Set up Java
41-
uses: actions/setup-java@v3
42-
with:
43-
distribution: temurin
44-
java-version: ${{ env.JAVA_VERSION }}
45-
46-
- name: Checkout repo
47-
uses: actions/checkout@v3
48-
with:
49-
path: current-repo
50-
51-
- name: Checkout Ecosystem
52-
uses: actions/checkout@v3
53-
with:
54-
repository: ${{ env.ECOSYSTEM_CI_REPO }}
55-
path: ecosystem-ci
56-
57-
- name: Setup and Run Tests
58-
run: ./ecosystem-ci/setup-and-test
59-
env:
60-
ECOSYSTEM_CI_TOKEN: ${{ secrets.ECOSYSTEM_CI_TOKEN }}
16+
uses: quarkiverse/.github/.github/workflows/quarkus-ecosystem-ci.yml@main
17+
secrets: inherit
18+
with:
19+
ecosystem_ci_repo_path: quarkiverse-embedded-postgresql
20+
java_version: 17

0 commit comments

Comments
 (0)