Skip to content

Commit 4e01520

Browse files
committed
add TS tests to ci flow
1 parent 6ebf868 commit 4e01520

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.github/workflows/benchmark-tests.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,19 @@ jobs:
7070
run: |
7171
python3 runner/run_benchmark.py -m test_mode=True iterations=1 benchmark="glob(*)" target=lf-rust
7272
if: ${{ inputs.target == 'Rust' }}
73+
- name: Setup Node.js environment
74+
uses: actions/[email protected]
75+
if: ${{ inputs.target == 'TS' }}
76+
- name: Install pnpm
77+
run: npm i -g pnpm
78+
if: ${{ inputs.target == 'TS' }}
79+
- name: Cache .pnpm-store
80+
uses: actions/cache@v2
81+
with:
82+
path: ~/.pnpm-store
83+
key: ${{ runner.os }}-node${{ matrix.node-version }}-${{ hashFiles('org.lflang/src/lib/ts/package.json') }}
84+
if: ${{ inputs.target == 'TS' }}
85+
- name: Test TypeScript benchmarks
86+
run: |
87+
python3 runner/run_benchmark.py -m test_mode=True iterations=1 benchmark="glob(*)" target=lf-ts
88+
if: ${{ inputs.target == 'TS' }}

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,9 @@ jobs:
2323
uses: lf-lang/benchmarks-lingua-franca/.github/workflows/benchmark-tests.yml@main
2424
with:
2525
target: 'Rust'
26+
ts-benchmark-tests:
27+
uses: lf-lang/benchmarks-lingua-franca/.github/workflows/benchmark-tests.yml@runner-ts
28+
with:
29+
target: 'TS'
2630

2731

0 commit comments

Comments
 (0)