mirror of
https://github.com/jlengrand/error-prone-support.git
synced 2026-03-10 08:11:25 +00:00
See: - https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v353 - https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v352 - https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v351 - https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v350 - https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v340 - https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v330 - https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v320
37 lines
1.2 KiB
YAML
37 lines
1.2 KiB
YAML
# Analyzes the code base using SonarCloud. See
|
|
# https://sonarcloud.io/project/overview?id=PicnicSupermarket_error-prone-support.
|
|
name: SonarCloud analysis
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [ master ]
|
|
schedule:
|
|
- cron: '0 4 * * 1'
|
|
permissions:
|
|
contents: read
|
|
jobs:
|
|
analyze:
|
|
permissions:
|
|
contents: read
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
|
with:
|
|
fetch-depth: 0
|
|
persist-credentials: false
|
|
- name: Set up JDK
|
|
uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3.11.0
|
|
with:
|
|
java-version: 17.0.7
|
|
distribution: temurin
|
|
cache: maven
|
|
- name: Create missing `test` directory
|
|
# XXX: Drop this step in favour of actually having a test.
|
|
run: mkdir refaster-compiler/src/test
|
|
- name: Perform SonarCloud analysis
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
run: mvn -T1C jacoco:prepare-agent verify jacoco:report sonar:sonar -Dverification.skip -Dsonar.projectKey=PicnicSupermarket_error-prone-support
|