mirror of
https://github.com/codecov/codecov-action.git
synced 2025-12-23 20:27:02 +08:00
23 lines
598 B
YAML
23 lines
598 B
YAML
name: Workflow for Codecov Action
|
|
on:
|
|
push:
|
|
branches: master
|
|
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
|