|
|
@ -3,8 +3,6 @@ name: static-analysis
|
|
|
|
on:
|
|
|
|
on:
|
|
|
|
push: {}
|
|
|
|
push: {}
|
|
|
|
pull_request: {}
|
|
|
|
pull_request: {}
|
|
|
|
schedule:
|
|
|
|
|
|
|
|
- cron: '0 9 * * *'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
jobs:
|
|
|
|
PVS-Studio:
|
|
|
|
PVS-Studio:
|
|
|
@ -16,16 +14,17 @@ jobs:
|
|
|
|
|
|
|
|
|
|
|
|
- name: Install Dependencies
|
|
|
|
- name: Install Dependencies
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
|
|
|
|
# The Secret variable setup in GitHub must be in format: "name_or_email key", on a single line
|
|
|
|
PVS_STUDIO_LICENSE: ${{ secrets.PVS_STUDIO_LICENSE }}
|
|
|
|
PVS_STUDIO_LICENSE: ${{ secrets.PVS_STUDIO_LICENSE }}
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
if [[ "$PVS_STUDIO_LICENSE" != "" ]];
|
|
|
|
if [[ "$PVS_STUDIO_LICENSE" != "" ]];
|
|
|
|
then
|
|
|
|
then
|
|
|
|
echo "$PVS_STUDIO_LICENSE" > pvs-studio.lic
|
|
|
|
|
|
|
|
wget -q https://files.viva64.com/etc/pubkey.txt
|
|
|
|
wget -q https://files.viva64.com/etc/pubkey.txt
|
|
|
|
sudo apt-key add pubkey.txt
|
|
|
|
sudo apt-key add pubkey.txt
|
|
|
|
sudo wget -O /etc/apt/sources.list.d/viva64.list https://files.viva64.com/etc/viva64.list
|
|
|
|
sudo wget -O /etc/apt/sources.list.d/viva64.list https://files.viva64.com/etc/viva64.list
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y pvs-studio
|
|
|
|
sudo apt-get install -y pvs-studio
|
|
|
|
|
|
|
|
pvs-studio-analyzer credentials -o pvs-studio.lic $PVS_STUDIO_LICENSE
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
- name: PVS-Studio static analysis
|
|
|
|
- name: PVS-Studio static analysis
|
|
|
|