mirror of
https://github.com/codecov/codecov-action.git
synced 2025-12-23 20:27:02 +08:00
put action.yml file in root
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
name: 'Codecov Github Action'
|
||||
description: 'Github action that uploads coverage reports for this repository to codecov.io'
|
||||
author: 'Ib @ Codecov'
|
||||
inputs:
|
||||
conf:
|
||||
description: 'Used to specify the location of the .codecov.yml config file'
|
||||
default: '.codecov.yml'
|
||||
file:
|
||||
description: 'Path to the code coverage data file to upload'
|
||||
default: ''
|
||||
flags:
|
||||
description: 'Flag the upload to group coverage metrics (e.g. unittests | integration | ui,chrome)'
|
||||
default: ''
|
||||
token:
|
||||
description: 'Set the private repository token (defaults to environment variable CODECOV_TOKEN)'
|
||||
default: ${{secrets.CODECOV_TOKEN}}
|
||||
branding:
|
||||
color: 'red'
|
||||
icon: 'umbrella'
|
||||
runs:
|
||||
using: 'node12'
|
||||
main: |
|
||||
curl -s https://codecov.io/bash | bash -s -- \
|
||||
-f ${{inputs.file}} \
|
||||
-t ${{inputs.token}} \
|
||||
-y ${{inputs.conf}} \
|
||||
-F ${{inputs.flags}} \
|
||||
-Z || echo 'Codecov upload failed'
|
||||
@@ -1,5 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
|
||||
bash <(curl -s https://codecov.io/bash)
|
||||
Reference in New Issue
Block a user