Upgrade CodeQL v2.21.4 -> v2.21.9 #920
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- name: Set up JDK | |
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.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 |