Skip to content

chore(bootstrap): RAN-46 engineering bootstrap (security, runbooks, OpenSSF wiring) #276

chore(bootstrap): RAN-46 engineering bootstrap (security, runbooks, OpenSSF wiring)

chore(bootstrap): RAN-46 engineering bootstrap (security, runbooks, OpenSSF wiring) #276

Workflow file for this run

name: Java CI
on:
push:
branches: [main]
paths: ['src/**', 'pom.xml']
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4.2.2
with:
fetch-depth: 0
- uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v4.7.1
with:
distribution: 'temurin'
java-version: '25'
cache: 'maven'
- run: mvn clean verify -B
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v4.6.2
if: always()
with:
name: test-results
path: target/surefire-reports/
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v4.6.2
with:
name: coverage-report
path: target/site/jacoco/
- name: SonarCloud analysis
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: >
mvn sonar:sonar -B
-Dsonar.projectKey=RandomCodeSpace_codeiq
-Dsonar.organization=randomcodespace
-Dsonar.host.url=https://sonarcloud.io
"-Dsonar.exclusions=**/grammar/**,target/generated-sources/**"
"-Dsonar.coverage.exclusions=**/grammar/**,target/generated-sources/**"