fix badge coverage generation
This commit is contained in:
parent
af4bb350c0
commit
de87d0d951
6
.github/workflows/ci_hubtest.yml
vendored
6
.github/workflows/ci_hubtest.yml
vendored
|
@ -12,6 +12,8 @@ jobs:
|
||||||
build:
|
build:
|
||||||
name: Hub tests
|
name: Hub tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
BRANCH_REF: ${{ github.ref }}
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Go 1.16
|
- name: Set up Go 1.16
|
||||||
uses: actions/setup-go@v1
|
uses: actions/setup-go@v1
|
||||||
|
@ -51,7 +53,7 @@ jobs:
|
||||||
echo "PARSER_BADGE_COLOR=$(if [ $PARSERS_COV_NUMBER -lt '70' ]; then echo 'red'; else echo 'green'; fi)" >> $GITHUB_ENV
|
echo "PARSER_BADGE_COLOR=$(if [ $PARSERS_COV_NUMBER -lt '70' ]; then echo 'red'; else echo 'green'; fi)" >> $GITHUB_ENV
|
||||||
echo "SCENARIO_BADGE_COLOR=$(if [ $SCENARIOS_COV_NUMBER -lt '70' ]; then echo 'red'; else echo 'green'; fi)" >> $GITHUB_ENV
|
echo "SCENARIO_BADGE_COLOR=$(if [ $SCENARIOS_COV_NUMBER -lt '70' ]; then echo 'red'; else echo 'green'; fi)" >> $GITHUB_ENV
|
||||||
- name: Create Parsers badge
|
- name: Create Parsers badge
|
||||||
if: github.ref == 'ref/head/master'
|
if: ${{ env.BRANCH_REF }} == 'ref/head/master'
|
||||||
uses: schneegans/dynamic-badges-action@v1.1.0
|
uses: schneegans/dynamic-badges-action@v1.1.0
|
||||||
with:
|
with:
|
||||||
auth: ${{ secrets.GIST_BADGES_SECRET }}
|
auth: ${{ secrets.GIST_BADGES_SECRET }}
|
||||||
|
@ -61,7 +63,7 @@ jobs:
|
||||||
message: ${{ env.PARSERS_COV }}
|
message: ${{ env.PARSERS_COV }}
|
||||||
color: ${{ env.SCENARIO_BADGE_COLOR }}
|
color: ${{ env.SCENARIO_BADGE_COLOR }}
|
||||||
- name: Create Scenarios badge
|
- name: Create Scenarios badge
|
||||||
if: github.ref == 'ref/head/master'
|
if: ${{ env.BRANCH_REF }} == 'ref/head/master'
|
||||||
uses: schneegans/dynamic-badges-action@v1.1.0
|
uses: schneegans/dynamic-badges-action@v1.1.0
|
||||||
with:
|
with:
|
||||||
auth: ${{ secrets.GIST_BADGES_SECRET }}
|
auth: ${{ secrets.GIST_BADGES_SECRET }}
|
||||||
|
|
Loading…
Reference in a new issue