Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/maven-build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Maven build

on: [ push, pull_request ]
on:
push:
branches: [ main ]
pull_request:
types: [ opened, synchronize, reopened ]

jobs:
build:
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/sonarcloud-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
name: SonarCloud code analysis

on: [push, pull_request]
on:
workflow_run:
workflows: [ Maven build ]
types: [ completed ]

jobs:
analyze:
name: Analyze
if: github.repository == 'web-eid/web-eid-authtoken-validation-java'
if: >
github.repository == 'web-eid/web-eid-authtoken-validation-java' &&
github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
repository: ${{ github.event.workflow_run.head_repository.full_name }}
ref: ${{ github.event.workflow_run.head_branch }}
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK 17
uses: actions/setup-java@v3
Expand Down
Loading