Skip to content

fix(ui): DateRange fix #1885

fix(ui): DateRange fix

fix(ui): DateRange fix #1885

name: PR - coverage annotation
on:
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
actions: read
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Get run ID of Code Climate workflow
id: get-run-id
run: |
REPO="${{ github.repository }}"
WF_NAME="Code Climate Report"
RUN_ID=`gh run --repo ${REPO} list --workflow "${WF_NAME}" --json databaseId --jq .[0].databaseId`
echo "Detected latest run id of ${RUN_ID} for workflow ${WF_NAME}"
echo "run-id=${RUN_ID}" >> "$GITHUB_OUTPUT"
- uses: actions/download-artifact@v4
with:
name: main-coverage-summary.json
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ steps.get-run-id.outputs.run-id }}
- name: Test
run: run test --coverage
- name: Report Coverage
uses: davelosert/vitest-coverage-report-action@v2
with:
json-summary-compare-path: main-coverage-summary.json