mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
32 lines
881 B
YAML
32 lines
881 B
YAML
# see https://github.com/marketplace/actions/sonarcloud-scan-for-c-and-c#usage
|
|
name: Sonar Check
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- dev
|
|
# pull_request:
|
|
# types: [opened, synchronize, reopened]
|
|
|
|
jobs:
|
|
build:
|
|
name: Build and analyze
|
|
if: github.repository == 'emsesp/EMS-ESP32'
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
BUILD_WRAPPER_OUT_DIR: bw-output
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Install Build Wrapper
|
|
uses: SonarSource/sonarqube-scan-action/install-build-wrapper@master
|
|
- name: Run Build Wrapper
|
|
run: build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} make all
|
|
- name: SonarQube Scan
|
|
uses: SonarSource/sonarqube-scan-action@master
|
|
env:
|
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
|