Skip to content

Commit c2a15a1

Browse files
committed
[XEN-3141] improve readability
1 parent 162fcdc commit c2a15a1

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ jobs:
1212
test:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v4
15+
- &checkout:
16+
uses: actions/checkout@v4
1617
with:
1718
fetch-depth: 0
18-
- uses: actions/setup-java@v4
19+
- &setupJava:
20+
uses: actions/setup-java@v4
1921
with:
2022
java-version: 17
2123
distribution: temurin
@@ -39,13 +41,8 @@ jobs:
3941
matrix:
4042
edition: [ "community-231", "enterprise-251" ]
4143
steps:
42-
- uses: actions/checkout@v4
43-
with:
44-
fetch-depth: 0
45-
- uses: actions/setup-java@v4
46-
with:
47-
java-version: 17
48-
distribution: temurin
44+
- *checkout
45+
- *setupJava
4946
- name: Test
5047
run: ./gradlew :integration-tests:alfresco-${{ matrix.edition }}:integrationTest -Prandom_ports=true
5148
- name: Upload reports
@@ -59,13 +56,8 @@ jobs:
5956
runs-on: ubuntu-latest
6057
if: ${{ startsWith(github.ref, 'refs/tags/') }}
6158
steps:
62-
- uses: actions/checkout@v4
63-
with:
64-
fetch-depth: 0
65-
- uses: actions/setup-java@v4
66-
with:
67-
java-version: 17
68-
distribution: temurin
59+
- *checkout
60+
- *setupJava
6961
- name: Publish
7062
env:
7163
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.MAVEN_CENTRAL_GPG_KEY }}

0 commit comments

Comments
 (0)