mirror of
https://github.com/songoda/EpicAnchors.git
synced 2024-11-01 08:09:36 +01:00
3b1f12a94b
Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](https://github.com/actions/cache/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/cache dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
43 lines
1000 B
YAML
43 lines
1000 B
YAML
name: SonarCloud
|
|
|
|
on:
|
|
push:
|
|
branches: [ master, development ]
|
|
workflow_dispatch:
|
|
|
|
permissions: read-all
|
|
|
|
env:
|
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
SONAR_ORGANIZATION: craftaro
|
|
SONAR_PROJECT_KEY: craftaro_EpicAnchors
|
|
|
|
jobs:
|
|
Analyze:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Prepare Workspace
|
|
uses: craftaro/GH-Commons/.github/actions/setup_workspace@master
|
|
|
|
- name: 'Cache: SonarCloud'
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: ~/.sonar/cache
|
|
key: ${{ runner.os }}-sonar
|
|
|
|
- name: Analyze project
|
|
run: >
|
|
mvn -B \
|
|
verify \
|
|
org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \
|
|
-Dsonar.host.url=https://sonarcloud.io \
|
|
"-Dsonar.organization=$SONAR_ORGANIZATION" \
|
|
"-Dsonar.projectKey=$SONAR_PROJECT_KEY"
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|