-
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (35 loc) · 907 Bytes
/
validate-codecov.yml
File metadata and controls
45 lines (35 loc) · 907 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Validate Codecov
on:
# Triggered on pull requests
pull_request:
paths:
- .github/codecov.yml
# Can be triggered manually
workflow_dispatch:
jobs:
validate:
name: Validate `codecov.yml`
runs-on: ubuntu-latest
defaults:
run:
shell: bash
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
fetch-depth: 1
- name: Validate codecov.yml
run: |
OUTPUT=$(curl -f -s --data-binary @.github/codecov.yml https://codecov.io/validate)
STATUS=$?
echo "$OUTPUT"
echo
if [ $STATUS -eq 0 ]; then
echo "✅ codecov.yml is valid"
else
echo "❌ codecov.yml is invalid"
exit 1
fi