-
Notifications
You must be signed in to change notification settings - Fork 11
39 lines (35 loc) · 923 Bytes
/
scala.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Scala CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
strategy:
matrix:
java: [ '8', '11', '17', '21' ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
# fetch the Git tags for sbt-dynver and sbt-version-policy to work correctly
fetch-depth: 0
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'sbt'
- name: npm install
run: npm install
- name: Run JVM tests
run: sbt tastyQueryJVM/test
- name: Run JS tests
run: sbt tastyQueryJS/test
- name: Run examples
run: sbt "examples/run simple_trees.TypeMember"
- name: Run scalafmt check
run: sbt scalafmtCheck
- name: Run version policy check
run: sbt versionPolicyCheck