Skip to content

Commit

Permalink
Merge pull request Wilfred#401 from eed3si9n/wip/smoke
Browse files Browse the repository at this point in the history
Bump smoke test targets
  • Loading branch information
eed3si9n authored Jun 30, 2024
2 parents 5bce09b + ae91190 commit de465b0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,25 @@ jobs:
uses: actions/checkout@v4
with:
repository: scala/scala
ref: v2.13.10
ref: v2.13.14
path: scala_scala

- name: checkout lampepfl/dotty
- name: checkout scala/scala3
if: ${{ runner.os == 'Linux' }}
uses: actions/checkout@v4
with:
repository: lampepfl/dotty
ref: 3.3.0
repository: scala/scala3
ref: 3.5.0-RC2
path: dotty

- name: checkout lichess-org/lila
if: ${{ runner.os == 'Linux' }}
uses: actions/checkout@v4
with:
repository: lichess-org/lila
ref: 83e61b9ef617164fe1d3a5112fcc611d0e5a7ea9
path: lila

- name: checkout nvim-treesitter/nvim-treesitter
if: ${{ runner.os == 'Linux' }}
uses: actions/checkout@v4
Expand Down Expand Up @@ -93,6 +101,7 @@ jobs:
env:
SCALA_SCALA_DIR: scala_scala
DOTTY_DIR: dotty
LILA_DIR: lila
run: script/smoke_test.sh

- name: copy nvim-treesitter queries
Expand Down
6 changes: 4 additions & 2 deletions script/smoke_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
# This is an integration test to generally check the quality of parsing.

SCALA_SCALA_LIBRARY_EXPECTED=100
SCALA_SCALA_COMPILER_EXPECTED=97
DOTTY_COMPILER_EXPECTED=85
SCALA_SCALA_COMPILER_EXPECTED=96
DOTTY_COMPILER_EXPECTED=83
LILA_MODULES_EXPECTED=84
SYNTAX_COMPLEXITY_CEILING=1400

if [ ! -d "$SCALA_SCALA_DIR" ]; then
Expand Down Expand Up @@ -77,6 +78,7 @@ check_complexity () {
run_tree_sitter "$SCALA_SCALA_DIR/src/library/" $SCALA_SCALA_LIBRARY_EXPECTED scala2-library
run_tree_sitter "$SCALA_SCALA_DIR/src/compiler/" $SCALA_SCALA_COMPILER_EXPECTED scala2-compiler
run_tree_sitter "$DOTTY_DIR/compiler/" $DOTTY_COMPILER_EXPECTED dotty-compiler
run_tree_sitter "$LILA_DIR/modules/" $LILA_MODULES_EXPECTED lila-modules

check_complexity $SYNTAX_COMPLEXITY_CEILING

Expand Down

0 comments on commit de465b0

Please sign in to comment.