Skip to content

Commit a69d950

Browse files
authored
Merge pull request #77 from AIO-GAME/1.x
1.x
2 parents c09d651 + d5d092e commit a69d950

File tree

2 files changed

+34
-12
lines changed

2 files changed

+34
-12
lines changed

.github/codecov.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
coverage:
2+
patch: false
3+
status:
4+
project:
5+
default:
6+
# basic
7+
target: auto
8+
threshold: 0
9+
base: auto
10+
# advanced settings
11+
if_ci_failed: error
12+
informational: false
13+
only_pulls: false

.github/workflows/codecov.yml

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
1-
name: workflow for Codecov
2-
on: [push]
1+
name: 🧪 CI Codecov
2+
on:
3+
push:
4+
branches: [main, dev]
5+
pull_request:
6+
branches: [main, dev]
7+
8+
permissions:
9+
contents: read
10+
pull-requests: write
11+
312
jobs:
4-
run:
13+
test:
514
runs-on: ubuntu-latest
6-
permissions:
7-
contents: read
8-
pull-requests: write
9-
15+
1016
steps:
11-
- uses: actions/checkout@main
12-
- uses: codecov/[email protected]
13-
with:
14-
token: ${{ secrets.CODECOV_TOKEN }} # required
15-
verbose: true # optional (default = false)
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
# TODO: cross fork PR will not trigger this action
21+
- name: 🧬 Report coverage
22+
uses: codecov/[email protected]
23+
env:
24+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)