Skip to content
Merged
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
12 changes: 9 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ name: Run Tests

on:
pull_request:
branches:
- main

jobs:
test:
if: github.base_ref == 'main'
runs-on: ubuntu-latest

steps:
Expand All @@ -16,7 +15,7 @@ jobs:
- name: Set up Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: "1.2.18" # or pin to whatever Bun version you need
bun-version: "1.2.18"

- name: Cache Bun dependencies
uses: actions/cache@v4
Expand All @@ -36,3 +35,10 @@ jobs:

- name: Run tests
run: bun jest
skip-tests:
if: github.base_ref != 'main'
runs-on: ubuntu-latest

steps:
- name: Skip tests for non-main PR
run: echo "Tests skipped - PR is not targeting main branch"