Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
authorLeitwolf2026-11-05 07:19:33 +0300
committerGitHub2026-11-05 07:19:33 +0300
commit5c6d9ea719fc2871b58d10165def473fd9d194a4 (patch)
tree109b02492775d35a132d7495a7a6af2713993906 /.github/workflows/ci.yml
parent7a9b7891812611f9e45e64b2c585d006a414af97 (diff)
parent81359cfe2d60dfa4a18551d72ead860082598433 (diff)
downloadtazel.net-seo/robots-txt.tar.gz
Merge branch 'main' into seo/robots-txtseo/robots-txt
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r--.github/workflows/ci.yml44
1 files changed, 43 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 2bceab7..05ee91b 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -30,7 +30,13 @@ jobs:
- run: npm ci
- run: npm run format:check
- run: npm run check
- - run: npm test
+ - run: npm run test:coverage
+ - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
+ with:
+ name: tazel-net-coverage
+ path: coverage/lcov.info
+ if-no-files-found: error
+ retention-days: 1
# Every page in every language is generated; a link to a page that does not exist fails it.
- run: npm run generate
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
@@ -51,3 +57,39 @@ jobs:
- uses: actions/dependency-review-action@2031cfc080254a8a887f58cffee85186f0e49e48 # v4.9.0
with:
fail-on-severity: moderate
+
+ coverage:
+ # Fork PRs cannot receive the OIDC token required for Codecov uploads.
+ if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
+ needs: site
+ runs-on: ubuntu-latest
+ timeout-minutes: 10
+ permissions:
+ contents: read
+ id-token: write
+ steps:
+ # Keep the OIDC-capable job apart from the package install and build.
+ - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
+ with:
+ name: tazel-net-coverage
+ path: coverage
+ - uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
+ with:
+ use_oidc: true
+ files: coverage/lcov.info
+ fail_ci_if_error: true
+
+ required:
+ name: CI Required
+ if: always()
+ needs: [site, dependency-review]
+ runs-on: ubuntu-latest
+ timeout-minutes: 5
+ steps:
+ # Dependency Review runs only on pull requests; skipped counts as passed.
+ - env:
+ SITE: ${{ needs.site.result }}
+ REVIEW: ${{ needs.dependency-review.result }}
+ run: |
+ test "$SITE" = success
+ test "$REVIEW" = success || test "$REVIEW" = skipped