File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 1818 java : [ '8', '11' ]
1919 arch : [ 'x32', 'x64' ]
2020 exclude :
21- - os : ubuntu-16 .04
21+ - os : ubuntu-18 .04
2222 arch : x32
23- - os : ubuntu-latest
23+ - os : ubuntu-20.04
2424 arch : x32
2525
2626 name : Java ${{ matrix.java }}/${{ matrix.arch }}/${{ matrix.os }}
@@ -45,33 +45,33 @@ jobs:
4545 architecture : ${{ matrix.arch }}
4646
4747 - name : Build with Maven
48- if : " ${{ !(matrix.arch == 'x64' && matrix.os == 'ubuntu-latest ' && matrix.java == '11') }}"
48+ if : " ${{ !(matrix.arch == 'x64' && matrix.os == 'ubuntu-20.04 ' && matrix.java == '11') || github.event.pull_request.head.repo.full_name != 'dnsjava/dnsjava' }}"
4949 run : mvn verify -B -"Dgpg.skip"
5050
5151 # doesn't work with PRs from forks, see https://jira.sonarsource.com/browse/MMF-1371
5252 - name : Build with Maven and run Sonar
53- if : " ${{ matrix.arch == 'x64' && matrix.os == 'ubuntu-latest ' && matrix.java == '11' }}"
53+ if : " ${{ github.event.pull_request.head.repo.full_name == 'dnsjava/dnsjava' && matrix.arch == 'x64' && matrix.os == 'ubuntu-20.04 ' && matrix.java == '11' }}"
5454 env :
5555 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5656 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
5757 run : mvn -X -B -"Dgpg.skip" verify jacoco:report org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
5858
5959 - name : Run codecovc
60- if : " ${{ matrix.arch == 'x64' && matrix.os == 'ubuntu-latest ' && matrix.java == '11' }}"
60+ if : " ${{ matrix.arch == 'x64' && matrix.os == 'ubuntu-20.04 ' && matrix.java == '11' }}"
6161 uses : codecov/codecov-action@v1
6262
6363 release :
6464 if : github.ref == 'refs/heads/master'
6565 needs : test
66- runs-on : ubuntu-latest
66+ runs-on : ubuntu-20.04
6767 steps :
6868 - uses : actions/checkout@v1
6969
7070 - name : Cache Maven dependencies
7171 uses : actions/cache@v1
7272 with :
7373 path : ~/.m2
74- key : m2-cache-8-x64-ubuntu-latest
74+ key : m2-cache-8-x64-ubuntu-20.04
7575
7676 - name : Set up JDK 8
7777 uses : joschi/setup-jdk@e87a7cec853d2dd7066adf837fe12bf0f3d45e52
You can’t perform that action at this time.
0 commit comments