Skip to content
This repository was archived by the owner on Oct 11, 2024. It is now read-only.

ericcornelissen/codecov-config-validator-action

Repository files navigation

Codecov Config Validator Action

A GitHub action to validate Codecov configuration files.

Warning

Support for this Action ended 2024-10-11. We recommend finding an alternative and to not start nor continue using this Action.

Usage

- uses: actions/checkout@v4
- uses: ericcornelissen/codecov-config-validator-action@v1
  with:
    # Provide a path to the location of the Codecov configuration file.
    #
    # Default: ".github/codecov.yml"
    # Required: false
    file: path/to/codecov.yml

Recommended Workflow

This workflow is recommended because it minimizes how often the Codecov config is validated.

# .github/workflows/config-codecov.yml

name: Codecov Config
on:
  pull_request:
    paths:
      - .github/workflows/config-codecov.yml
      - .github/codecov.yml
  push:
    branches:
      - main # default branch
    paths:
      - .github/workflows/config-codecov.yml
      - .github/codecov.yml

permissions: read-all

jobs:
  validate:
    name: Validate
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: ericcornelissen/codecov-config-validator-action@v1
        with:
          file: .github/codecov.yml

Outputs

See the steps context documentation for how to use output values.

  • status-code: The HTTP status code returned by the Codecov API.

Runners

This action is tested on the official ubuntu-20.04 and ubuntu-22.04 runner images. It is recommended to use one of these images when using this action.

Security

Permissions

This Action requires no permissions.

Network

This Action requires network access to the endpoint codecov.io:443.

License

All source code is licensed under the Mozilla Public License 2.0 license, see LICENSE for the full license text. The contents of documentation is licensed under CC BY-SA 4.0.


Please open an issue if you found a mistake or if you have a suggestion for how to improve the documentation.

About

Action for validating Codecov configuration files

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •