name: Coverity Scan

on:
  push:
    branches: [ master ]

jobs:
  coverity:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: dependencies
      run: sudo apt-get -y install g++ libcfitsio-dev autoconf-archive
    - name: bootstrap
      run: ./bootstrap
    - name: configure
      run: ./configure

    - uses: vapier/coverity-scan-action@v1
      with:
        command: make
        email: ${{ secrets.COVERITY_SCAN_EMAIL }}
        token: ${{ secrets.COVERITY_SCAN_TOKEN }}

Add a Coverity Scan Github action.
github: Add a Coverity Scan Github action.

Automatically run Coverity Scan on code pushed to the main development
branch.
