Merge pull request #14059 from gavindsouza/gha-cond-job
fix(ci): Don't skip Coverage job unconditionally
This commit is contained in:
commit
3c43e63544
2 changed files with 14 additions and 2 deletions
2
.github/helper/roulette.py
vendored
2
.github/helper/roulette.py
vendored
|
|
@ -25,7 +25,7 @@ def is_ci(file):
|
|||
return ".github" in file
|
||||
|
||||
def is_frontend_code(file):
|
||||
return file.endswith((".css", ".scss", ".less", ".sass", ".styl", ".js", ".ts"))
|
||||
return file.lower().endswith((".css", ".scss", ".less", ".sass", ".styl", ".js", ".ts", ".vue"))
|
||||
|
||||
def is_docs(file):
|
||||
regex = re.compile(r'\.(md|png|jpg|jpeg|csv)$|^.github|LICENSE')
|
||||
|
|
|
|||
14
.github/workflows/server-mariadb-tests.yml
vendored
14
.github/workflows/server-mariadb-tests.yml
vendored
|
|
@ -131,17 +131,29 @@ jobs:
|
|||
COVERALLS_SERVICE_NAME: ${{ github.event_name == 'pull_request' && 'github' || 'github-actions' }}
|
||||
COVERALLS_PARALLEL: true
|
||||
|
||||
- run: echo ${{ steps.check-build.outputs.build }} > guess-the-fruit.txt
|
||||
- uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: fruit
|
||||
path: guess-the-fruit.txt
|
||||
|
||||
coveralls:
|
||||
name: Coverage Wrap Up
|
||||
needs: test
|
||||
if: ${{ needs.test.steps.check-build.build == 'strawberry' }}
|
||||
container: python:3-slim
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- uses: actions/download-artifact@v1
|
||||
with:
|
||||
name: fruit
|
||||
- run: echo "WILDCARD=$(cat fruit/guess-the-fruit.txt)" >> $GITHUB_ENV
|
||||
|
||||
- name: Clone
|
||||
if: ${{ env.WILDCARD == 'strawberry' }}
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Coveralls Finished
|
||||
if: ${{ env.WILDCARD == 'strawberry' }}
|
||||
run: |
|
||||
cd ${GITHUB_WORKSPACE}
|
||||
pip3 install coverage==5.5
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue