Invoices, Klaviyo: Refactor to shared components #1252
Workflow file for this run
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: Run tests | |
on: | |
pull_request: | |
jobs: | |
unit_test: | |
name: Unit tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/[email protected] | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: "pnpm" | |
- name: Install dependencies | |
run: pnpm install | |
- name: Generate schema | |
run: pnpm generate | |
- name: Test | |
run: pnpm test | |
# TODO: Add coverage - crawl through every package | |
# - name: Generate coverage report | |
# uses: irongut/[email protected] | |
# with: | |
# filename: coverage/cobertura-coverage.xml | |
# format: markdown | |
# output: file | |
# | |
# - name: Add Coverage PR Comment | |
# uses: marocchino/sticky-pull-request-comment@v2 | |
# if: github.event_name == 'pull_request' | |
# with: | |
# recreate: true | |
# path: code-coverage-results.md |