Skip to content

Commit 1e5b55a

Browse files
committed
chore(ci): update github actions versions
1 parent 3e8b3ba commit 1e5b55a

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

.github/workflows/gradle.yml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,34 @@
11
on: [push, pull_request, create]
22
jobs:
33
build:
4-
runs-on: ubuntu-latest
4+
runs-on: ${{ matrix.os }}
5+
strategy:
6+
fail-fast: false
7+
matrix:
8+
# https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs
9+
os: [ubuntu-latest] #, windows-latest, macos-latest]
10+
jdk: [8]
511
steps:
612
- uses: actions/checkout@v4
7-
with:
8-
submodules: 'recursive'
9-
- name: Set up JDK
10-
uses: actions/setup-java@v3
13+
- name: Set up JDK ${{ matrix.jdk }}
14+
uses: actions/setup-java@v4
1115
with:
1216
distribution: 'zulu'
13-
java-version: 8
17+
java-version: ${{ matrix.jdk }}
1418
- name: Cache Gradle packages
15-
uses: actions/cache@v3
19+
uses: actions/cache@v4
1620
with:
1721
path: ~/.gradle/caches
18-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
19-
restore-keys: ${{ runner.os }}-gradle
22+
key: ${{ matrix.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
23+
restore-keys: ${{ matrix.os }}-gradle
2024
- name: Grant execute permission for gradlew
2125
run: chmod +x gradlew
2226
- name: Execute tests
2327
run: ./gradlew check || (exitcode=$?; find build/tests -name '*.log' -type f | while read f; do echo -e "\033[4m$f\033[0m"; cat $f; done && return $exitcode)
2428
- name: Build deployment artifacts
2529
run: ./gradlew deploy
2630
- name: Upload jars as artifact
27-
uses: actions/upload-artifact@v3
31+
uses: actions/upload-artifact@v4
2832
with:
2933
name: software-challenge-backend-${{ github.sha }}
3034
path: |
@@ -35,12 +39,12 @@ jobs:
3539
runs-on: ubuntu-latest
3640
if: startsWith(github.ref, 'refs/tags/')
3741
steps:
38-
- uses: actions/download-artifact@v3
42+
- uses: actions/download-artifact@v4 # https://github.com/actions/download-artifact
3943
with:
4044
name: software-challenge-backend-${{ github.sha }}
4145
path: artifacts
4246
- name: Release ${{ github.ref }}
43-
uses: softprops/action-gh-release@v1
47+
uses: softprops/action-gh-release@v1 # https://github.com/softprops/action-gh-release
4448
with:
4549
files: artifacts/*
4650
env:

0 commit comments

Comments
 (0)