@tscircuit/eval 0.0.346 → 0.0.347

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.
@@ -5,28 +5,42 @@ on:
5
5
  pull_request:
6
6
 
7
7
  jobs:
8
+ check-skip-condition:
9
+ runs-on: ubuntu-latest
10
+ outputs:
11
+ should-skip: ${{ steps.skip-check.outputs.should-skip }}
12
+ steps:
13
+ - name: Check if tests should be skipped
14
+ id: skip-check
15
+ 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
20
+ fi
21
+
8
22
  validate-test-matrix:
9
23
  runs-on: ubuntu-latest
10
- if: "${{ github.event_name != 'pull_request' || github.event.pull_request.title != 'chore: bump version' }}"
24
+ needs: check-skip-condition
25
+ if: needs.check-skip-condition.outputs.should-skip == 'false'
11
26
 
12
27
  steps:
13
28
  - name: Checkout code
14
29
  uses: actions/checkout@v4
15
-
30
+
16
31
  - name: Setup bun
17
32
  uses: oven-sh/setup-bun@v2
18
33
  with:
19
34
  bun-version: latest
20
-
35
+
21
36
  - name: Validate test matrix covers all directories
22
37
  run: bun run scripts/validate-test-matrix.js
23
38
 
24
39
  test:
25
40
  runs-on: ubuntu-latest
26
- if: "${{ github.event_name != 'pull_request' || github.event.pull_request.title != 'chore: bump version' }}"
27
-
28
41
  timeout-minutes: 5
29
- needs: validate-test-matrix
42
+ needs: [check-skip-condition, validate-test-matrix]
43
+ if: needs.check-skip-condition.outputs.should-skip == 'false'
30
44
  strategy:
31
45
  matrix:
32
46
  test-dir: [circuit-runner, custom-component-with-fsmap, examples, features, node-resolution, repros, util-fns]