-
Notifications
You must be signed in to change notification settings - Fork 13
45 lines (38 loc) · 1.09 KB
/
test.yaml
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
40
41
42
43
44
45
name: Test examples
on:
push:
branches: [main]
pull_request:
jobs:
test:
name: Test examples
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: coursier/cache-action@v6.3
- name: Setup Scala CLI
uses: VirtusLab/scala-cli-setup@main
- name: Test changelog compliance
run: |
scala-cli changelog -- --module-name toolkit --file Toolkit.scala --skip js
scala-cli changelog -- --module-name toolkit --file Toolkit.js.scala --skip jvm --skip native
scala-cli changelog -- --module-name toolkit-test --file ToolkitTest.scala --module-dep toolkit
- name: Run test examples
run: |
cd examples
for file in *.sc
do
scala-cli "$file"
done
- name: Run examples of tests
run: |
cd examples
for file in *.test.scala
do
scala-cli test "$file"
done
- name: Run checks tests
run: scala-cli test checks