Skip to content

Commit cd268f1

Browse files
hamzaremmalWojciechMazur
authored andcommitted
chore: add workflow to test the scala3-language-server
[Cherry-picked 9e1bb76]
1 parent a07cad5 commit cd268f1

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ jobs:
125125
uses: actions/checkout@v5
126126

127127
- name: Test
128-
run: sbt ";scala3-bootstrapped/compile; scala3-language-server/test"
128+
run: sbt ";scala3-bootstrapped/compile"
129129
shell: cmd
130130

131131
- name: build binary

.github/workflows/stdlib.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,23 @@ jobs:
332332
- name: Compile `scala3-presentation-compiler`
333333
run: ./project/scripts/sbt scala3-presentation-compiler/compile
334334

335+
language-server:
336+
runs-on: ubuntu-latest
337+
steps:
338+
- name: Git Checkout
339+
uses: actions/checkout@v5
340+
341+
- name: Set up JDK 17
342+
uses: actions/setup-java@v5
343+
with:
344+
distribution: 'temurin'
345+
java-version: 17
346+
cache: 'sbt'
347+
- uses: sbt/setup-sbt@v1
348+
349+
- name: Compile `scala3-language-server`
350+
run: ./project/scripts/sbt scala3-language-server/compile
351+
335352
#################################################################################################
336353
########################################### MiMa JOBS ###########################################
337354
#################################################################################################
@@ -616,6 +633,23 @@ jobs:
616633
- name: Test Presentation Compiler
617634
run: ./project/scripts/sbt scala3-presentation-compiler/test
618635

636+
test-language-server:
637+
runs-on: ubuntu-latest
638+
needs: [language-server]
639+
steps:
640+
- name: Git Checkout
641+
uses: actions/checkout@v5
642+
643+
- name: Set up JDK 17
644+
uses: actions/setup-java@v5
645+
with:
646+
distribution: 'temurin'
647+
java-version: 17
648+
cache: 'sbt'
649+
- uses: sbt/setup-sbt@v1
650+
- name: Test Language Server
651+
run: ./project/scripts/sbt scala3-language-server/test
652+
619653
scripted-tests:
620654
runs-on: ubuntu-latest
621655
needs: [scala3-compiler-bootstrapped, tasty-core-bootstrapped, scala3-staging, scala3-tasty-inspector, scala-library-sjs, scaladoc]

0 commit comments

Comments
 (0)