Merge pull request #525 from sylvestre/cov

ci: adjust to code cov v5
This commit is contained in:
Daniel Hofstetter
2025-04-05 09:49:52 +02:00
committed by GitHub
2 changed files with 17 additions and 8 deletions
+4 -3
View File
@@ -120,8 +120,9 @@ jobs:
path: lcov.info
- name: Upload coverage to codecov.io
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: lcov.info
files: lcov.info
fail_ci_if_error: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
+13 -5
View File
@@ -20,7 +20,15 @@ jobs:
repository: gnu-mirror-unofficial/findutils
path: findutils.gnu
ref: 5768a03ddfb5e18b1682e339d6cdd24ff721c510
submodules: true
submodules: false
- name: Override submodule URL and initialize submodules
# Use github instead of upstream git server
run: |
git submodule sync --recursive
git config submodule.gnulib.url https://github.com/coreutils/gnulib.git
git submodule update --init --recursive --depth 1
working-directory: findutils.gnu
- name: Install `rust` toolchain
run: |
## Install `rust` toolchain
@@ -202,7 +210,7 @@ jobs:
steps:
- name: List Annotations
uses: actions/github-script@v7
with:
script: |
let runs = await github.rest.checks.listForRef({
@@ -222,7 +230,7 @@ jobs:
repo: context.repo.repo,
check_run_id: result.id
});
run.data.forEach(data => {
annotations.data.push({
run: result.name,
@@ -232,7 +240,7 @@ jobs:
}
// Remove duplicate items.
annotations.data = annotations.data.filter((value, index, self) =>
annotations.data = annotations.data.filter((value, index, self) =>
self.findIndex(v => v.annotation.message === value.annotation.message) === index);
let fs = require('fs');
@@ -242,4 +250,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: comment
path: annotations.json
path: annotations.json