chore: home screen updates (#208) #343
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Codecov | |
on: | |
push: | |
branches: ["*"] | |
pull_request: | |
branches: ["*"] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: ['v22.11.0'] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js (${{ matrix.node-version }}) | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: npm ci | |
- name: Lint | |
run: npm run lint | |
- name: Run tests and generate coverage | |
run: npm run test -- --coverage | |
- name: Build | |
run: npm run build | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v5 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} # Required if the repo is private | |
files: ./coverage/lcov.info # Path to the lcov report | |
flags: unittests # Optional: Flag for specific test type | |
name: codecov-umbrella # Optional: Custom name for coverage report | |
fail_ci_if_error: true # Optional: Fail CI if upload fails |