name: GitHub CI
-on: [push, pull_request]
+on:
+ push:
+ branches: ['**']
+ pull_request:
jobs:
linux:
do_test make ${SHADOWOPT} ${TEST}
- name: Coveralls
- if: matrix.coverage && success()
+ if: matrix.coverage && success() && github.event_name != 'pull_request'
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
COVERALLS_PARALLEL: true
- name: Codecov
if: matrix.coverage && success()
- run: |
- cd "${SRCDIR}" && bash <(curl -s https://codecov.io/bash)
+ uses: codecov/codecov-action@v1
+ with:
+ flags: ${{ matrix.features }}-${{ matrix.compiler }}-${{ matrix.extra }}
+ fail_ci_if_error: true
+ working-directory: ${{ env.SRCDIR }}
- name: ASan logs
if: contains(matrix.extra, 'asan') && !cancelled()
runs-on: ubuntu-latest
needs: linux
- if: always()
+ if: github.event_name != 'pull_request'
steps:
- name: Parallel finished
steps:
- name: Checkout repository
uses: actions/checkout@v2
- with:
- # We must fetch at least the immediate parents so that if this is
- # a pull request then we can checkout the head.
- fetch-depth: 2
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL