LibBotUniversal/.gitea/workflows/analysis.yml

28 lines
643 B
YAML
Raw Normal View History

2024-10-29 23:55:01 +02:00
name: Analysis
on:
push:
branches:
- main
- dev
pull_request:
types: [ opened, synchronize, reopened ]
2024-10-29 23:55:01 +02:00
jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-24.04
2024-10-29 23:55:01 +02:00
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: SonarQube Cache
uses: actions/cache@v4
with:
path: ${{ gitea.workspace }}/.sonar/cache
key: ${{ runner.os }}-sonar
- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v4.2.1
2024-10-29 23:55:01 +02:00
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}