Skip to content

Commit 2737573

Browse files
committed
Codecov action v4
1 parent ea10262 commit 2737573

File tree

9 files changed

+19
-9
lines changed

9 files changed

+19
-9
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ v0.3.0 (in development)
33
- Switch from nom to winnow
44
- `release`: Take name of repository's default branch into account when adding
55
changelog link to README
6-
- `test.yml` template: Improve Dependabot exclusion condition
6+
- `test.yml` template:
7+
- Improve Dependabot exclusion condition
8+
- Use v4 of Codecov action with token
79

810
v0.2.0 (2023-11-22)
911
-------------------

src/templates/.github/workflows/test.yml.tt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,11 @@ jobs:
9090
run: cargo llvm-cov --all-features --lcov --output-path lcov.info
9191

9292
- name: Upload coverage to Codecov
93-
uses: codecov/codecov-action@v3
93+
uses: codecov/codecov-action@v4
9494
with:
9595
files: lcov.info
9696
fail_ci_if_error: false
97+
token: $\{\{ secrets.CODECOV_TOKEN }}
9798

9899
lint:
99100
runs-on: ubuntu-latest

tests/data/new/bin-lib/.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,11 @@ jobs:
9090
run: cargo llvm-cov --all-features --lcov --output-path lcov.info
9191

9292
- name: Upload coverage to Codecov
93-
uses: codecov/codecov-action@v3
93+
uses: codecov/codecov-action@v4
9494
with:
9595
files: lcov.info
9696
fail_ci_if_error: false
97+
token: ${{ secrets.CODECOV_TOKEN }}
9798

9899
lint:
99100
runs-on: ubuntu-latest

tests/data/new/bin/.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,11 @@ jobs:
9090
run: cargo llvm-cov --all-features --lcov --output-path lcov.info
9191

9292
- name: Upload coverage to Codecov
93-
uses: codecov/codecov-action@v3
93+
uses: codecov/codecov-action@v4
9494
with:
9595
files: lcov.info
9696
fail_ci_if_error: false
97+
token: ${{ secrets.CODECOV_TOKEN }}
9798

9899
lint:
99100
runs-on: ubuntu-latest

tests/data/new/custom-project-name/.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,11 @@ jobs:
9090
run: cargo llvm-cov --all-features --lcov --output-path lcov.info
9191

9292
- name: Upload coverage to Codecov
93-
uses: codecov/codecov-action@v3
93+
uses: codecov/codecov-action@v4
9494
with:
9595
files: lcov.info
9696
fail_ci_if_error: false
97+
token: ${{ secrets.CODECOV_TOKEN }}
9798

9899
lint:
99100
runs-on: ubuntu-latest

tests/data/new/custom-project-repo-name/.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,11 @@ jobs:
9090
run: cargo llvm-cov --all-features --lcov --output-path lcov.info
9191

9292
- name: Upload coverage to Codecov
93-
uses: codecov/codecov-action@v3
93+
uses: codecov/codecov-action@v4
9494
with:
9595
files: lcov.info
9696
fail_ci_if_error: false
97+
token: ${{ secrets.CODECOV_TOKEN }}
9798

9899
lint:
99100
runs-on: ubuntu-latest

tests/data/new/custom-repo-name/.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,11 @@ jobs:
9090
run: cargo llvm-cov --all-features --lcov --output-path lcov.info
9191

9292
- name: Upload coverage to Codecov
93-
uses: codecov/codecov-action@v3
93+
uses: codecov/codecov-action@v4
9494
with:
9595
files: lcov.info
9696
fail_ci_if_error: false
97+
token: ${{ secrets.CODECOV_TOKEN }}
9798

9899
lint:
99100
runs-on: ubuntu-latest

tests/data/new/description/.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,11 @@ jobs:
9090
run: cargo llvm-cov --all-features --lcov --output-path lcov.info
9191

9292
- name: Upload coverage to Codecov
93-
uses: codecov/codecov-action@v3
93+
uses: codecov/codecov-action@v4
9494
with:
9595
files: lcov.info
9696
fail_ci_if_error: false
97+
token: ${{ secrets.CODECOV_TOKEN }}
9798

9899
lint:
99100
runs-on: ubuntu-latest

tests/data/new/lib/.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,11 @@ jobs:
9090
run: cargo llvm-cov --all-features --lcov --output-path lcov.info
9191

9292
- name: Upload coverage to Codecov
93-
uses: codecov/codecov-action@v3
93+
uses: codecov/codecov-action@v4
9494
with:
9595
files: lcov.info
9696
fail_ci_if_error: false
97+
token: ${{ secrets.CODECOV_TOKEN }}
9798

9899
lint:
99100
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)