Skip to content

Commit

Permalink
step3: add project status check target
Browse files Browse the repository at this point in the history
  • Loading branch information
Adal3n3 committed Apr 23, 2024
1 parent 366e107 commit a09f75c
Showing 1 changed file with 6 additions and 40 deletions.
46 changes: 6 additions & 40 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,6 @@
# This is a basic workflow to help you get started with Actions

name: Upload coverage reports to Codecov

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: Adal3n3/codecov-demo

# Runs a single command using the runners shell
- name: Run a one-line script
run: echo Hello, world!

# Runs a set of commands using the runners shell
- name: Run a multi-line script
run: |
echo Add other actions to build,
echo test, and deploy your project.
coverage:
status:
project:
default:
target: 100%
threshold: 1%

0 comments on commit a09f75c

Please sign in to comment.