From 8f862d4fdb358cb278616d877a1f65e67a835de6 Mon Sep 17 00:00:00 2001 From: vit9696 Date: Fri, 27 Nov 2020 12:17:33 +0300 Subject: [PATCH] Add coverity analysis --- .github/workflows/main.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c6fb778..487dabb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -136,3 +136,23 @@ jobs: file: dist/*.zip tag: ${{ github.ref }} file_glob: true + + analyze_coverity: + env: + PROJECT_TYPE: TOOL + JOB_TYPE: COVERITY + name: Analyze Coverity + runs-on: macos-10.15 + steps: + - name: CI Bootstrap + run: | + src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/acidanthera/ocbuild/master/ci-bootstrap.sh) && eval "$src" || exit 1 + - uses: actions/checkout@v2 + - run: ./unixbuild.sh --configure + - name: Run Coverity + run: | + src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/acidanthera/ocbuild/master/coverity/covstrap.sh) && eval "$src" || exit 1 + env: + COVERITY_SCAN_TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} + COVERITY_SCAN_EMAIL: ${{ secrets.COVERITY_SCAN_EMAIL }} + COVERITY_BUILD_COMMAND: ./unixbuild.sh --build