GitHub actions improvements with code coverage #100
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
RELATED HANDBOOK PR: https://github.com/infinum/frontend-handbook-private/pull/89
HANDBOOK STAGING CHAPTER: https://beta.infinum.com/handbook/frontend/react/testing/visible-test-coverage
Summary
This PR refactors GitHub Actions workflows, improves security, and adds visible test coverage reporting.
Changes
🔄 GitHub Actions Refactoring
code-analysis.ymlwith modularci.ymlworkflow containing separate parallel jobs:lint: Code analysis (Prettier + ESLint)licenses: License compliance checksbuild: Package buildsnode-setup: Node.js environment setup with cachingcode-analysis: Linting and formatting checkscheck-licenses: License validationcoverage.ymlworkflow🔒 Security Improvements
@v4,@v7) with commit SHA hashes to prevent supply chain attacks from compromised version tagsactions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673bactions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02minimumReleaseAgeto 10 days📊 Test Coverage Visibility
coverage.yml):aggregate-coverage-results.js: Generates combined coverage summaries and GitHub Actions job summariescomment-coverage-diff.js: Posts/updates PR comments with coverage comparisons (total + per-package for monorepos)📦 Additional Changes
.gitignoreto exclude coverage artifacts@actions/coredependency for GitHub Actions integrationpnpm-workspace.yamlconfiguration