Skip to content

Commit 5fda037

Browse files
committed
Add setup-gradle action and update quality-assurance workflow***
Signed-off-by: James Bradlee <[email protected]>
1 parent e995936 commit 5fda037

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Setup Gradle
2+
description: Setup Gradle
3+
runs:
4+
using: composite
5+
steps:
6+
- shell: sh
7+
run: |
8+
source gradle/wrapper/gradle-wrapper.properties
9+
echo "Gradle URL: $distributionUrl"
10+
path=${{ runner.temp }}/gradle
11+
wget --no-verbose -O ${{ runner.temp }}/gradle.zip $distributionUrl
12+
unzip ${{ runner.temp }}/gradle.zip -d $path
13+
echo $path/$(ls -1 $path)/bin >> $GITHUB_PATH

.github/workflows/quality-assurance.yaml

+1-7
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,7 @@ jobs:
1212
java-version: "21"
1313
distribution: "temurin"
1414
- name: Setup Gradle
15-
run: |
16-
source gradle/wrapper/gradle-wrapper.properties
17-
echo "Gradle URL: $distributionUrl"
18-
path=${{ runner.temp }}/gradle
19-
wget --no-verbose -O ${{ runner.temp }}/gradle.zip $distributionUrl
20-
unzip ${{ runner.temp }}/gradle.zip -d $path
21-
echo $path/$(ls -1 $path)/bin >> $GITHUB_PATH
15+
uses: ./.github/actions/setup-gradle
2216
- name: Tests
2317
run: gradle test
2418
env:

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
!/.github/CODEOWNERS
99
!/.github/assets/next.png
1010
!/.github/workflows/*.yaml
11+
!/.github/actions/*/*.yaml
1112
!/.github/CODE_OF_CONDUCT.md
1213
!/.github/SECURITY.md
1314

0 commit comments

Comments
 (0)