Update .gitea/workflows/test-checker.yaml
parent
4bd233712b
commit
dcaa5fbae3
|
@ -16,4 +16,16 @@ jobs:
|
||||||
- name: Run checker (failing)
|
- name: Run checker (failing)
|
||||||
run: |
|
run: |
|
||||||
cd tests/fail/
|
cd tests/fail/
|
||||||
! python3 ../../run-tests.py
|
! python3 ../../run-tests.py
|
||||||
|
- name: Update badges (success)
|
||||||
|
if: success()
|
||||||
|
run: curl -X 'GET' \
|
||||||
|
'https://badgeapi.docker.162536.xyz/set_badge/?repo=marmoset-test-cases&new_badge=Tests-passing-brightgreen' \
|
||||||
|
-H 'accept: application/json' \
|
||||||
|
-H 'X-API-Key: ${{ secrets.BADGE_API_KEY }}'
|
||||||
|
- name: Update badges (fail)
|
||||||
|
if: failure()
|
||||||
|
run: curl -X 'GET' \
|
||||||
|
'https://badgeapi.docker.162536.xyz/set_badge/?repo=marmoset-test-cases&new_badge=Tests-failing-red' \
|
||||||
|
-H 'accept: application/json' \
|
||||||
|
-H 'X-API-Key: ${{ secrets.BADGE_API_KEY }}'
|
||||||
|
|
Loading…
Reference in New Issue