Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: PR Check

on:
pull_request:
branches: [main, development]

jobs:
pr-check:
name: PR Check
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_OUTPUT

- name: Cache pnpm store
uses: actions/cache@v4
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Lint
run: pnpm lint

- name: Test
run: pnpm test --ci

- name: Type check
run: pnpm exec tsc --noEmit
4 changes: 1 addition & 3 deletions src/__tests__/components/landing/hero.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ describe("Hero", () => {
it("renders the heading and CTA", () => {
render(<Hero />);

expect(
screen.getByRole("heading", { level: 1 }),
).toBeInTheDocument();
expect(screen.getByRole("heading", { level: 1 })).toBeInTheDocument();

expect(
screen.getByRole("button", { name: /explore your metrics/i }),
Expand Down
Loading