Skip to content

Commit 16b1791

Browse files
committed
Update GitHub Actions.
1 parent 30ec6cb commit 16b1791

File tree

4 files changed

+4
-16
lines changed

4 files changed

+4
-16
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,6 @@ jobs:
1919
with:
2020
java-version: 17
2121
distribution: 'adopt'
22-
- name: Cache local Maven repository
23-
uses: actions/cache@v4
24-
with:
25-
path: ~/.m2/repository
26-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
27-
restore-keys: |
28-
${{ runner.os }}-maven-
22+
cache: 'maven'
2923
- name: Build with Maven
3024
run: mvn -B clean package --file pom.xml

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ on:
2323
jobs:
2424
analyze:
2525
name: Analyze
26-
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
26+
runs-on: ubuntu-latest
2727
permissions:
2828
actions: read
2929
contents: read

.github/workflows/coverage.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
with:
1212
java-version: 17
1313
distribution: 'adopt'
14+
cache: 'maven'
1415
- name: Install dependencies
1516
run: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
1617
- name: Run tests and collect coverage

.github/workflows/docs.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,7 @@ jobs:
1515
uses: actions/setup-python@v5
1616
with:
1717
python-version: 3.9
18-
- name: Cache pip
19-
uses: actions/cache@v4
20-
with:
21-
path: ~/.cache/pip
22-
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
23-
restore-keys: |
24-
${{ runner.os }}-pip-
25-
${{ runner.os }}-
18+
cache: 'pip'
2619
- name: Run script
2720
run: bash .github/workflows/mkdocs/mkdocs.sh
2821
shell: bash

0 commit comments

Comments
 (0)