Skip to content

Remove status

Remove status #7

Workflow file for this run

on:
push:
pull_request:
branches:
- feature/* # TODO: Remove it
- develop
- main
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Init
run: npm ci
- name: Run Coverage
run: (npm run coverage 2>&1) | tee /tmp/coverage.out | cat
- name: Check coverage
run: cat /tmp/coverage.out | grep "Global test coverage"
- name: Create Check Run
env:
GH_TOKEN: ${{ github.token }}
run: |
curl -L -X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $GH_TOKEN"\
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/${{ github.repository }}/check-runs \
-d '{"name":"Coverage", "head_sha":"${{ github.event.pull_request.head.sha }}","output":{"title":"A Mighty title", "summary":""}}'