WIP - feat(app): improve chat experience #4
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 Jest tests | |
on: | |
pull_request: | |
jobs: | |
jest: | |
name: Jest | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
checks: write | |
steps: | |
- name: 🏗 Setup repo | |
uses: actions/checkout@v4 | |
- name: 🥟 Setup Bun | |
uses: oven-sh/setup-bun@v2 | |
with: | |
bun-version-file: '.bun-version' | |
- name: Setup Node | |
uses: actions/[email protected] | |
with: | |
node-version-file: .nvmrc | |
- name: 📦 Install dependencies | |
run: bun install --frozen-lockfile | |
- name: 🎭 Run Jest | |
run: bun run test | |
- name: Coverage | |
uses: ArtiomTr/jest-coverage-report-action@v2 | |
id: coverage | |
with: | |
skip-step: install | |
package-manager: pnpm | |
test-script: pnpm test:coverage | |
output: report-markdown | |
- name: Comment | |
uses: marocchino/sticky-pull-request-comment@v2 | |
with: | |
message: ${{ steps.coverage.outputs.report }} |