name: C/C++ CI

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: dependencies
      run: sudo apt install g++ libcfitsio-dev autoconf-archive lcov texinfo texlive pandoc
    - name: bootstrap
      run: ./bootstrap
    - name: configure
      run: ./configure --enable-code-coverage
    - name: make
      run: make
    - name: make check
      run: make check-code-coverage CODE_COVERAGE_OUTPUT_FILE=lcov.info
    - name: make distcheck
      run: make distcheck
    - name: make install
      run: sudo make install
    - name: make installcheck
      run: LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH make installcheck
    - name: make uninstall
      run: sudo make uninstall
    - name: Coveralls
      uses: coverallsapp/github-action@master
      with:
        github-token: ${{ secrets.GITHUB_TOKEN }}
        path-to-lcov: ./lcov.info

name: C/C++ CI

on: ["push", "pull_request"]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: dependencies
      run: sudo apt install g++ libcfitsio-dev autoconf-archive lcov texinfo texlive pandoc
    - name: bootstrap
      run: ./bootstrap
    - name: configure
      run: ./configure --enable-code-coverage
    - name: make
      run: make
    - name: make check
      run: make check-code-coverage CODE_COVERAGE_OUTPUT_FILE=lcov.info
    - name: make distcheck
      run: make distcheck
    - name: make install
      run: sudo make install
    - name: make installcheck
      run: LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH make installcheck
    - name: make uninstall
      run: sudo make uninstall
    - name: Coveralls
      uses: coverallsapp/github-action@master
      with:
        github-token: ${{ secrets.GITHUB_TOKEN }}
        path-to-lcov: ./lcov.info

Correct GitHub action for Coveralls support.
github: Correct GitHub action for Coveralls support.
