Skip to content

chore: Add Codecov actions #96

chore: Add Codecov actions

chore: Add Codecov actions #96

Workflow file for this run

name: Test
on: pull_request
jobs:
canCreateRuleFile:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
uses: ./.github/actions/build
- run: yarn createRule
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
uses: ./.github/actions/build
- run: yarn test
- name: Create coverage reports
run: yarn jest --coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
directory: ./coverage