@tscircuit/eval 0.0.347 → 0.0.349

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,61 +4,72 @@ 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
- check-skip-condition:
11
+ validate-test-matrix:
9
12
  runs-on: ubuntu-latest
10
- outputs:
11
- should-skip: ${{ steps.skip-check.outputs.should-skip }}
12
13
  steps:
13
- - name: Check if tests should be skipped
14
- id: skip-check
14
+ - name: Check if should skip
15
+ id: should-skip
15
16
  run: |
16
- if [[ "${{ github.event_name }}" != "pull_request" || "${{ github.event.pull_request.title }}" != "chore: bump version" ]]; then
17
- echo "should-skip=false" >> $GITHUB_OUTPUT
18
- else
19
- echo "should-skip=true" >> $GITHUB_OUTPUT
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
20
  fi
21
21
 
22
- validate-test-matrix:
23
- runs-on: ubuntu-latest
24
- needs: check-skip-condition
25
- if: needs.check-skip-condition.outputs.should-skip == 'false'
26
-
27
- steps:
28
22
  - name: Checkout code
23
+ if: github.event.pull_request.title != env.SKIP_PR_TITLE
29
24
  uses: actions/checkout@v4
30
25
 
31
26
  - name: Setup bun
27
+ if: github.event.pull_request.title != env.SKIP_PR_TITLE
32
28
  uses: oven-sh/setup-bun@v2
33
29
  with:
34
30
  bun-version: latest
35
31
 
36
32
  - name: Validate test matrix covers all directories
33
+ if: github.event.pull_request.title != env.SKIP_PR_TITLE
37
34
  run: bun run scripts/validate-test-matrix.js
38
35
 
39
36
  test:
40
37
  runs-on: ubuntu-latest
41
38
  timeout-minutes: 5
42
- needs: [check-skip-condition, validate-test-matrix]
43
- if: needs.check-skip-condition.outputs.should-skip == 'false'
39
+ needs: validate-test-matrix
44
40
  strategy:
45
41
  matrix:
46
42
  test-dir: [circuit-runner, custom-component-with-fsmap, examples, features, node-resolution, repros, util-fns]
47
43
 
48
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
+
49
53
  - name: Checkout code
54
+ if: github.event.pull_request.title != env.SKIP_PR_TITLE
50
55
  uses: actions/checkout@v4
51
56
 
52
57
  - name: Setup bun
58
+ if: github.event.pull_request.title != env.SKIP_PR_TITLE
53
59
  uses: oven-sh/setup-bun@v2
54
60
  with:
55
61
  bun-version: latest
56
62
 
57
63
  - name: Install dependencies
64
+ if: github.event.pull_request.title != env.SKIP_PR_TITLE
58
65
  run: bun install
59
66
 
60
- - 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
+
61
71
  - name: Run tests for ${{ matrix.test-dir }}
72
+ if: github.event.pull_request.title != env.SKIP_PR_TITLE
62
73
  run: |
63
74
  set +e
64
75
  for i in 1 2 3 4; do
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/eval",
3
3
  "main": "dist/lib/index.js",
4
- "version": "0.0.347",
4
+ "version": "0.0.349",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "bun run build:lib && bun run build:webworker && bun run build:blob-url && bun run build:runner && bun run build:worker-wrapper",
@@ -1,109 +0,0 @@
1
- name: Auto-merge tscircuitbot PRs
2
-
3
- on:
4
- pull_request_target:
5
- types: [opened, synchronize, reopened]
6
- check_suite:
7
- types: [completed]
8
-
9
- jobs:
10
- debug:
11
- runs-on: ubuntu-latest
12
- steps:
13
- - name: Debug event context
14
- run: |
15
- echo "Event name: ${{ github.event_name }}"
16
- echo "PR number: ${{ github.event.pull_request.number }}"
17
- echo "PR title: ${{ github.event.pull_request.title }}"
18
- echo "PR user: ${{ github.event.pull_request.user.login }}"
19
- echo "PR head sha: ${{ github.event.pull_request.head.sha }}"
20
- echo "Check suite conclusion: ${{ github.event.check_suite.conclusion }}"
21
- echo "Repository: ${{ github.repository }}"
22
- echo "Actor: ${{ github.actor }}"
23
-
24
- auto-merge:
25
- runs-on: ubuntu-latest
26
- needs: debug
27
- if: >
28
- github.event.pull_request &&
29
- (github.event.pull_request.user.login == 'tscircuitbot' ||
30
- github.actor == 'tscircuitbot') &&
31
- contains(github.event.pull_request.title, 'chore: update @tscircuit/core')
32
-
33
- steps:
34
- - name: Wait for test (circuit-runner)
35
- uses: fountainhead/action-wait-for-check@v1.2.0
36
- with:
37
- token: ${{ secrets.GITHUB_TOKEN }}
38
- checkName: test (circuit-runner)
39
- ref: ${{ github.event.pull_request.head.sha }}
40
-
41
- - name: Wait for test (custom-component-with-fsmap)
42
- uses: fountainhead/action-wait-for-check@v1.2.0
43
- with:
44
- token: ${{ secrets.GITHUB_TOKEN }}
45
- checkName: test (custom-component-with-fsmap)
46
- ref: ${{ github.event.pull_request.head.sha }}
47
-
48
- - name: Wait for test (examples)
49
- uses: fountainhead/action-wait-for-check@v1.2.0
50
- with:
51
- token: ${{ secrets.GITHUB_TOKEN }}
52
- checkName: test (examples)
53
- ref: ${{ github.event.pull_request.head.sha }}
54
-
55
- - name: Wait for test (features)
56
- uses: fountainhead/action-wait-for-check@v1.2.0
57
- with:
58
- token: ${{ secrets.GITHUB_TOKEN }}
59
- checkName: test (features)
60
- ref: ${{ github.event.pull_request.head.sha }}
61
-
62
- - name: Wait for test (node-resolution)
63
- uses: fountainhead/action-wait-for-check@v1.2.0
64
- with:
65
- token: ${{ secrets.GITHUB_TOKEN }}
66
- checkName: test (node-resolution)
67
- ref: ${{ github.event.pull_request.head.sha }}
68
-
69
- - name: Wait for test (repros)
70
- uses: fountainhead/action-wait-for-check@v1.2.0
71
- with:
72
- token: ${{ secrets.GITHUB_TOKEN }}
73
- checkName: test (repros)
74
- ref: ${{ github.event.pull_request.head.sha }}
75
-
76
- - name: Wait for test (util-fns)
77
- uses: fountainhead/action-wait-for-check@v1.2.0
78
- with:
79
- token: ${{ secrets.GITHUB_TOKEN }}
80
- checkName: test (util-fns)
81
- ref: ${{ github.event.pull_request.head.sha }}
82
-
83
- - name: Wait for type check completion
84
- uses: fountainhead/action-wait-for-check@v1.2.0
85
- with:
86
- token: ${{ secrets.GITHUB_TOKEN }}
87
- checkName: type-check
88
- ref: ${{ github.event.pull_request.head.sha }}
89
-
90
- - name: Wait for Playwright tests
91
- uses: fountainhead/action-wait-for-check@v1.2.0
92
- with:
93
- token: ${{ secrets.GITHUB_TOKEN }}
94
- checkName: test
95
- ref: ${{ github.event.pull_request.head.sha }}
96
-
97
- - name: Wait for format check completion
98
- uses: fountainhead/action-wait-for-check@v1.2.0
99
- with:
100
- token: ${{ secrets.GITHUB_TOKEN }}
101
- checkName: format-check
102
- ref: ${{ github.event.pull_request.head.sha }}
103
-
104
- - name: Enable auto-merge
105
- uses: peter-evans/enable-pull-request-automerge@v3
106
- with:
107
- token: ${{ secrets.TSCIRCUIT_BOT_GITHUB_TOKEN }}
108
- pull-request-number: ${{ github.event.pull_request.number }}
109
- merge-method: squash