Skip to content

ci: improve workflows #1

ci: improve workflows

ci: improve workflows #1

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
jobs:
codecov:

Check failure on line 10 in .github/workflows/codecov.yml

View workflow run for this annotation

GitHub Actions / Test

Invalid workflow file

The workflow is not valid. .github/workflows/codecov.yml (Line: 10, Col: 3): The workflow must contain at least one job with no dependencies.
name: ${{ matrix.package }} Coverage
strategy:
matrix:
package:
- config
- foxify
- fresh
- http
- inject
- router
runs-on: ubuntu-latest
needs:
- main
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: coverage
path: coverage
- name: "Check file existence"
id: check_coverage_files
uses: andstor/file-existence-action@v2
with:
files: coverage/${{ matrix.package }}
- name: Upload coverage to CodeCov
uses: codecov/codecov-action@v3
if: steps.check_coverage_files.outputs.files_exists == 'true'
with:
files: coverage/${{ matrix.package }}/coverage/clover.xml,coverage/${{ matrix.package }}/coverage/coverage-final.json,coverage/${{ matrix.package }}/coverage/lcov.info
flags: ${{ matrix.package }}
fail_ci_if_error: true