-
Notifications
You must be signed in to change notification settings - Fork 12
35 lines (32 loc) · 1017 Bytes
/
sonarcloud.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
on:
workflow_dispatch:
push:
branches:
- "**"
jobs:
static_analysis:
runs-on: ubuntu-latest
container:
image: ubuntu:focal
steps:
- name: Install package
run: |
apt-get update
apt-get -y install qtbase5-dev qt3d5-dev libqt5svg5-dev freeglut3-dev libabsl-dev lcov git
- name: Install build wrapper
run: |
wget http://sonarcloud.io/static/cpp/build-wrapper-linux-x86.zip
unzip build-wrapper-linux-x86.zip
- name: Install sonar scanner
run: |
wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.6.2.2472-linux.zip
unzip sonar-scanner-cli-4.6.2.2472-linux.zip
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
- name: Build and scan
run: ci/buildsonarcloud.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}