comparison .github/workflows/ci.yml @ 23221:4046b3d17d60 v8.2.2156

patch 8.2.2156: Github actions run on pusing a tag Commit: https://github.com/vim/vim/commit/b5b77378bc35cb268c384e98c59f2bf8cb406270 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Dec 18 13:31:31 2020 +0100 patch 8.2.2156: Github actions run on pusing a tag Problem: Github actions run on pusing a tag. Solution: Don't run CI on tag push. Omit coveralls on pull-request. (Ozaki Kiichi, closes #7489)
author Bram Moolenaar <Bram@vim.org>
date Fri, 18 Dec 2020 13:45:04 +0100
parents 1984a3fcc953
children b2660a8bbf36
comparison
equal deleted inserted replaced
23220:69a1ebf37348 23221:4046b3d17d60
1 name: GitHub CI 1 name: GitHub CI
2 2
3 on: [push, pull_request] 3 on:
4 push:
5 branches: ['**']
6 pull_request:
4 7
5 jobs: 8 jobs:
6 linux: 9 linux:
7 runs-on: ubuntu-latest 10 runs-on: ubuntu-latest
8 11
195 run: | 198 run: |
196 do_test() { sg audio "sg $(id -gn) '$*'"; } 199 do_test() { sg audio "sg $(id -gn) '$*'"; }
197 do_test make ${SHADOWOPT} ${TEST} 200 do_test make ${SHADOWOPT} ${TEST}
198 201
199 - name: Coveralls 202 - name: Coveralls
200 if: matrix.coverage && success() 203 if: matrix.coverage && success() && github.event_name != 'pull_request'
201 env: 204 env:
202 COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} 205 COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
203 COVERALLS_PARALLEL: true 206 COVERALLS_PARALLEL: true
204 TRAVIS_JOB_ID: ${{ github.run_id }} 207 TRAVIS_JOB_ID: ${{ github.run_id }}
205 run: | 208 run: |
208 CC=gcc pip3 install --user cpp-coveralls pyopenssl ndg-httpsclient pyasn1 211 CC=gcc pip3 install --user cpp-coveralls pyopenssl ndg-httpsclient pyasn1
209 ~/.local/bin/coveralls -b "${SRCDIR}" -x .xs -e "${SRCDIR}"/if_perl.c -e "${SRCDIR}"/xxd -e "${SRCDIR}"/libvterm --encodings utf-8 212 ~/.local/bin/coveralls -b "${SRCDIR}" -x .xs -e "${SRCDIR}"/if_perl.c -e "${SRCDIR}"/xxd -e "${SRCDIR}"/libvterm --encodings utf-8
210 213
211 - name: Codecov 214 - name: Codecov
212 if: matrix.coverage && success() 215 if: matrix.coverage && success()
213 run: | 216 uses: codecov/codecov-action@v1
214 cd "${SRCDIR}" && bash <(curl -s https://codecov.io/bash) 217 with:
218 flags: ${{ matrix.features }}-${{ matrix.compiler }}-${{ matrix.extra }}
219 fail_ci_if_error: true
220 working-directory: ${{ env.SRCDIR }}
215 221
216 - name: ASan logs 222 - name: ASan logs
217 if: contains(matrix.extra, 'asan') && !cancelled() 223 if: contains(matrix.extra, 'asan') && !cancelled()
218 run: | 224 run: |
219 for f in $(grep -lR '#[[:digit:]]* *0x[[:digit:]a-fA-F]*' "${LOG_DIR}"); do 225 for f in $(grep -lR '#[[:digit:]]* *0x[[:digit:]a-fA-F]*' "${LOG_DIR}"); do
223 229
224 coveralls: 230 coveralls:
225 runs-on: ubuntu-latest 231 runs-on: ubuntu-latest
226 232
227 needs: linux 233 needs: linux
228 if: always() 234 if: github.event_name != 'pull_request'
229 235
230 steps: 236 steps:
231 - name: Parallel finished 237 - name: Parallel finished
232 env: 238 env:
233 COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} 239 COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}