@tscircuit/eval 0.0.346 → 0.0.348

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,27 +4,37 @@ name: Bun Test
4
4
  on:
5
5
  pull_request:
6
6
 
7
+ env:
8
+ SKIP_PR_TITLE: "chore: bump version"
9
+
7
10
  jobs:
8
11
  validate-test-matrix:
9
12
  runs-on: ubuntu-latest
10
- if: "${{ github.event_name != 'pull_request' || github.event.pull_request.title != 'chore: bump version' }}"
11
-
12
13
  steps:
14
+ - name: Check if should skip
15
+ id: should-skip
16
+ run: |
17
+ if [[ "${{ github.event.pull_request.title }}" == "${{ env.SKIP_PR_TITLE }}" ]]; then
18
+ echo "Skipping validation - this is a version bump PR"
19
+ exit 0
20
+ fi
21
+
13
22
  - name: Checkout code
23
+ if: github.event.pull_request.title != env.SKIP_PR_TITLE
14
24
  uses: actions/checkout@v4
15
-
25
+
16
26
  - name: Setup bun
27
+ if: github.event.pull_request.title != env.SKIP_PR_TITLE
17
28
  uses: oven-sh/setup-bun@v2
18
29
  with:
19
30
  bun-version: latest
20
-
31
+
21
32
  - name: Validate test matrix covers all directories
33
+ if: github.event.pull_request.title != env.SKIP_PR_TITLE
22
34
  run: bun run scripts/validate-test-matrix.js
23
35
 
24
36
  test:
25
37
  runs-on: ubuntu-latest
26
- if: "${{ github.event_name != 'pull_request' || github.event.pull_request.title != 'chore: bump version' }}"
27
-
28
38
  timeout-minutes: 5
29
39
  needs: validate-test-matrix
30
40
  strategy:
@@ -32,19 +42,34 @@ jobs:
32
42
  test-dir: [circuit-runner, custom-component-with-fsmap, examples, features, node-resolution, repros, util-fns]
33
43
 
34
44
  steps:
45
+ - name: Check if should skip
46
+ id: should-skip
47
+ run: |
48
+ if [[ "${{ github.event.pull_request.title }}" == "${{ env.SKIP_PR_TITLE }}" ]]; then
49
+ echo "Skipping tests - this is a version bump PR"
50
+ exit 0
51
+ fi
52
+
35
53
  - name: Checkout code
54
+ if: github.event.pull_request.title != env.SKIP_PR_TITLE
36
55
  uses: actions/checkout@v4
37
56
 
38
57
  - name: Setup bun
58
+ if: github.event.pull_request.title != env.SKIP_PR_TITLE
39
59
  uses: oven-sh/setup-bun@v2
40
60
  with:
41
61
  bun-version: latest
42
62
 
43
63
  - name: Install dependencies
64
+ if: github.event.pull_request.title != env.SKIP_PR_TITLE
44
65
  run: bun install
45
66
 
46
- - run: bun run build
67
+ - name: Build project
68
+ if: github.event.pull_request.title != env.SKIP_PR_TITLE
69
+ run: bun run build
70
+
47
71
  - name: Run tests for ${{ matrix.test-dir }}
72
+ if: github.event.pull_request.title != env.SKIP_PR_TITLE
48
73
  run: |
49
74
  set +e
50
75
  for i in 1 2 3 4; do