File tree Expand file tree Collapse file tree 4 files changed +4
-16
lines changed Expand file tree Collapse file tree 4 files changed +4
-16
lines changed Original file line number Diff line number Diff line change 19
19
with :
20
20
java-version : 17
21
21
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'
29
23
- name : Build with Maven
30
24
run : mvn -B clean package --file pom.xml
Original file line number Diff line number Diff line change 23
23
jobs :
24
24
analyze :
25
25
name : Analyze
26
- runs-on : ${{ (matrix.language == 'swift' && 'macos-latest') || ' ubuntu-latest' }}
26
+ runs-on : ubuntu-latest
27
27
permissions :
28
28
actions : read
29
29
contents : read
Original file line number Diff line number Diff line change 11
11
with :
12
12
java-version : 17
13
13
distribution : ' adopt'
14
+ cache : ' maven'
14
15
- name : Install dependencies
15
16
run : mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
16
17
- name : Run tests and collect coverage
Original file line number Diff line number Diff line change 15
15
uses : actions/setup-python@v5
16
16
with :
17
17
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'
26
19
- name : Run script
27
20
run : bash .github/workflows/mkdocs/mkdocs.sh
28
21
shell : bash
You can’t perform that action at this time.
0 commit comments