Skip to content

Update setup.yml

Update setup.yml #9

Workflow file for this run

name: Setup and coverage bagde
on:
push:
branches:
- ft-analytics
pull_request:
branches:
- ft-analytics
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:

Check failure on line 15 in .github/workflows/setup.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/setup.yml

Invalid workflow file

You have an error in your yaml syntax on line 15
- uses: actions/checkout@v3
- name: Install Packages
run: npm install
- name: Build
run: npm run build
test-and-coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Packages
run: npm install
- name: Run Tests with Coverage
run: npm test -- --coverage
- name: List coverage directory
run: ls -la coverage
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}