Skip to content

Merge pull request #2 from itsferdiardiansa/ci/github #2

Merge pull request #2 from itsferdiardiansa/ci/github

Merge pull request #2 from itsferdiardiansa/ci/github #2

name: Upload Coverage
on:
workflow_run:
workflows: ["Test Coverage"]
types: [requested]
branches:
- main
push:
branches:
- main
paths-ignore:
- "**.json"
- "docs/**"
jobs:
upload-coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Download coverage reports artifact
uses: dawidd6/action-download-artifact@v3
with:
name: ${{ vars.COVERAGE_NAME }}
path: ${{ vars.COVERAGE_PATH }}
workflow: test-coverage.yaml
run_id: ${{ github.event.workflow_run.id }}
search_artifacts: true
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
env:
slug: itsferdiardiansa/Pinpin
with:
files: ${{ vars.COVERAGE_FILE_JSON }}
token: ${{ secrets.CODECOV_TOKEN }}