vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 93a14d7bea6f200d6d93decb6f9beba4d33c6e39 parent c13ac65ef7e88e7035bd0e897536a95dc3e0b706 Author: Marc André Tanner <mat@brain-dump.org> Date: Thu, 20 Feb 2020 08:06:50 +0100 ci: add periodical coverity scan check Diffstat:
| A | .github/workflows/coverity-scan.yml | | | 53 | +++++++++++++++++++++++++++++++++++++++++++++++++++++ |
1 file changed, 53 insertions(+), 0 deletions(-)
diff --git a/.github/workflows/coverity-scan.yml b/.github/workflows/coverity-scan.yml @@ -0,0 +1,53 @@ +name: Coverity Scan + +on: + schedule: + - cron: '0 0 * * 0' # once a week + +jobs: + scan: + runs-on: ubuntu-latest + steps: + + - name: Checkout + uses: actions/checkout@v2 + + - name: Dependency + run: | + sudo apt install \ + libacl1-dev \ + liblua5.3-dev \ + libncursesw5-dev \ + libselinux1-dev \ + libtermkey-dev \ + libtre-dev + + - name: Download Coverity Build Tool + run: | + wget -q https://scan.coverity.com/download/cxx/linux64 --post-data "token=$TOKEN&project=martanne/vis" -O cov-analysis-linux64.tar.gz + mkdir cov-analysis-linux64 + tar xzf cov-analysis-linux64.tar.gz --strip 1 -C cov-analysis-linux64 + env: + TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} + + - name: Configure + run: ./configure + + - name: Build with cov-build + run: | + export PATH=$(pwd)/cov-analysis-linux64/bin:$PATH + cov-build --dir cov-int make + + - name: Submit the result to Coverity Scan + run: | + tar czvf vis.tgz cov-int + curl \ + --form project=martanne/vis \ + --form token=$TOKEN \ + --form email=mat@brain-dump.org \ + --form file=@vis.tgz \ + --form version=trunk \ + --form description="`./vis -v`" \ + https://scan.coverity.com/builds?project=martanne/vis + env: + TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}