diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 960f266..7c84d64 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }} diff --git a/.github/workflows/compat.yml b/.github/workflows/compat.yml index b2bea97..826e64b 100644 --- a/.github/workflows/compat.yml +++ b/.github/workflows/compat.yml @@ -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 \ No newline at end of file + path: annotations.json