Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix workflow
  • Loading branch information
Hendrik van Antwerpen
Hendrik van Antwerpen committed Jul 28, 2023
commit 5f12b91437bec6df5c1bff31b2bb50c45b127c8f
15 changes: 8 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ jobs:
rust: [stable]
env:
TEST_NAME: typeorm-0.3.17
TSSG_TS: tree-sitter-stack-graphs-typescript

steps:
- name: Install Rust environment
Expand All @@ -140,28 +141,28 @@ jobs:
with:
lfs: true
- name: Build
run: cargo build --release -p tree-sitter-stack-graphs-typescript --features cli
run: cargo build --release -p ${{ env.TSSG_TS }} --features cli
- name: Checkout benchmark code
run: unzip benchmarks/${{ env.TEST_NAME }}.zip
- name: Index
run: |
target/release/tree-sitter-stack-graphs-typescript index -D ${{ env.TEST_NAME }}.sqlite --hide-error-details \
target/release/${{ env.TSSG_TS }} index -D ${{ env.TEST_NAME }}.sqlite --hide-error-details \
${{ env.TEST_NAME }}/package.json \
${{ env.TEST_NAME }}/tsconfig.json \
${{ env.TEST_NAME }}/src/data-source/ \
${{ env.TEST_NAME }}/src/entity-manager/
- name: Index (forced)
run: |
target/release/tree-sitter-stack-graphs-typescript index -D ${{ env.TEST_NAME }}.sqlite --hide-error-details \
target/release/${{ env.TSSG_TS }} index -D ${{ env.TEST_NAME }}.sqlite --hide-error-details \
${{ env.TEST_NAME }}/package.json \
${{ env.TEST_NAME }}/tsconfig.json \
${{ env.TEST_NAME }}/src/data-source/ \
${{ env.TEST_NAME }}/src/entity-manager/
- name: Query
run: |
target/release/tree-sitter-stack-graphs-typescript query -D ${{ env.TEST_NAME }}.sqlite definition \
src/data-source/DataSource.ts:6:10 \
src/data-source/DataSource.ts:84:23
target/release/${{ env.TSSG_TS }} query -D ${{ env.TEST_NAME }}.sqlite definition \
${{ env.TEST_NAME }}/src/data-source/DataSource.ts:6:10 \
${{ env.TEST_NAME }}/src/data-source/DataSource.ts:84:23
- name: Query
run: |
target/release/tree-sitter-stack-graphs-typescript status -D ${{ env.TEST_NAME }}.sqlite --all
target/release/${{ env.TSSG_TS }} status -D ${{ env.TEST_NAME }}.sqlite --all