Skip to content

Commit 1db6849

Browse files
authored
fix: run tests without sonar when not owned by usdot (#218)
1 parent b975dae commit 1db6849

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,21 @@ jobs:
2020
cache-from: type=gha
2121
cache-to: type=gha,mode=max
2222

23+
test-no-sonar:
24+
if: github.event.pull_request.base.repo.owner.login != 'usdot-jpo-ode'
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v4
28+
with:
29+
submodules: recursive
30+
- name: Set up JDK
31+
uses: actions/setup-java@v4
32+
with:
33+
java-version: "21"
34+
distribution: "temurin"
35+
- name: Build and test
36+
run: mvn clean verify
37+
2338
sonar:
2439
if: github.event.pull_request.base.repo.owner.login == 'usdot-jpo-ode'
2540
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)