Skip to content
Merged
Changes from 1 commit
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
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Managed by sh1pt Actions Fleet
# pack: node-pnpm-ci@1.0.0
# install: sh1pt-actions-store
# hash: sha256:aa7aeaf3bddaf7bf324ceb02f46ab421bb229d5f5917fdb6f7a1a948a4a9fcce
name: CI

on:
push:
branches: [main, master]
pull_request:

permissions:
contents: read

concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
with:
version: 9

- uses: actions/setup-node@v4
with:
node-version: '22'
cache: pnpm

- run: pnpm install --frozen-lockfile

- run: pnpm typecheck
Comment thread
greptile-apps[bot] marked this conversation as resolved.
Outdated

- run: pnpm test

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 The test script is defined as vitest (watch mode). While GitHub Actions sets CI=true and vitest will honour that by running once, the explicit test:run script (vitest run) is more reliable and removes any ambiguity about whether the suite hangs waiting for input.

Suggested change
- run: pnpm test
- run: pnpm test:run

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Loading