mirror of
https://github.com/codecov/codecov-action.git
synced 2025-12-09 20:36:25 +00:00
20 lines
574 B
YAML
20 lines
574 B
YAML
name: Workflow for Codecov Action
|
|
on: [push, pull_request]
|
|
jobs:
|
|
run:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@master
|
|
- name: Install dependencies
|
|
run: npm install
|
|
- name: Run tests and collect coverage
|
|
run: yarn run test-all
|
|
- name: Upload coverage to Codecov
|
|
uses: ./
|
|
with:
|
|
files: ./coverage/calculator/coverage-final.json,./coverage/index/coverage-final.json
|
|
file: ./coverage/coverage-final.json
|
|
flags: unittest
|
|
name: codecov-1
|