We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1e5ebcb + 60663ca commit 8284f94Copy full SHA for 8284f94
1 file changed
.github/workflows/tests.yml
@@ -2,11 +2,10 @@ name: Run Tests
2
3
on:
4
pull_request:
5
- branches:
6
- - main
7
8
jobs:
9
test:
+ if: github.base_ref == 'main'
10
runs-on: ubuntu-latest
11
12
steps:
@@ -16,7 +15,7 @@ jobs:
16
15
- name: Set up Bun
17
uses: oven-sh/setup-bun@v2
18
with:
19
- bun-version: "1.2.18" # or pin to whatever Bun version you need
+ bun-version: "1.2.18"
20
21
- name: Cache Bun dependencies
22
uses: actions/cache@v4
@@ -36,3 +35,10 @@ jobs:
36
35
37
- name: Run tests
38
run: bun jest
+ skip-tests:
39
+ if: github.base_ref != 'main'
40
+ runs-on: ubuntu-latest
41
+
42
+ steps:
43
+ - name: Skip tests for non-main PR
44
+ run: echo "Tests skipped - PR is not targeting main branch"
0 commit comments