Skip to content

Commit 1f4a412

Browse files
authored
Merge pull request iluwatar#1535 from ohbus/master
Cache SonarCloud packages
2 parents 195a735 + a375380 commit 1f4a412

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/maven-ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,29 +30,43 @@ on:
3030
push:
3131
branches: [ master ]
3232

33+
3334
jobs:
35+
3436
build:
3537

3638
runs-on: ubuntu-20.04
3739

3840
steps:
41+
3942
- uses: actions/checkout@v2
4043
with:
4144
# Disabling shallow clone for improving relevancy of SonarQube reporting
4245
fetch-depth: 0
46+
4347
- name: Set up JDK 11
4448
uses: actions/setup-java@v1
4549
with:
4650
java-version: 11
51+
52+
- name: Cache SonarCloud packages
53+
uses: actions/cache@v2
54+
with:
55+
path: ~/.sonar/cache
56+
key: ${{ runner.os }}-sonar
57+
restore-keys: ${{ runner.os }}-sonar
58+
4759
- uses: actions/cache@v2
4860
with:
4961
path: ~/.m2/repository
5062
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
5163
restore-keys: |
5264
${{ runner.os }}-maven-
65+
5366
# Some tests need screen access
5467
- name: Install xvfb
5568
run: sudo apt-get install -y xvfb
69+
5670
# The SonarQube analysis is only for the master branch of the main repository.
5771
# SonarQube scan does not work for forked repositories try changing it to xvfb-run mvn clean verify
5872
# See https://jira.sonarsource.com/browse/MMF-1371

0 commit comments

Comments
 (0)