Skip to content

Implement Initial Monorepo #2

Implement Initial Monorepo

Implement Initial Monorepo #2

Workflow file for this run

name: Code Coverage

Check failure on line 1 in .github/workflows/coverage.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/coverage.yml

Invalid workflow file

`jobs` is not a valid event name
on:
push:
branches: ["master"]
pull_request:
jobs:
generate:
name: Generate Coverage
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"
- name: Generate Coverage Report
run: npm run coverage
- name: Upload Coverage Artifact
uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage/
if-no-files-found: error
upload:
name: Upload Coverage
needs: [generate]
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Download Coverage Artifact
uses: actions/download-artifact@v4
with:
name: coverage
path: coverage/
- name: Upload to Codecov
uses: codecov/codecov-action@v3
with:
directory: coverage/
fail_ci_if_error: true