feat: create config generator script for os contribution #878
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Report Code Coverage | |
on: | |
workflow_call: | |
secrets: | |
CODECOV_TOKEN: | |
required: true | |
pull_request: | |
types: ['opened', 'reopened', 'synchronize'] | |
jobs: | |
coverage: | |
name: Code Coverage | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3.5.0 | |
with: | |
fetch-depth: 1 | |
- name: Setup Node | |
uses: actions/setup-node@v3.6.0 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'npm' | |
- name: Install Dependencies | |
run: npm ci | |
- name: Run Tests | |
run: npm run test:ci | |
- name: Upload Coverage Reports to Codecov | |
uses: codecov/codecov-action@v3.1.1 | |
with: | |
directory: ./reports/coverage | |
token: ${{ secrets.CODECOV_TOKEN }} |