-
Notifications
You must be signed in to change notification settings - Fork 12
52 lines (46 loc) · 1.33 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Scala CI
on:
push:
branches: [ latest ]
pull_request:
branches: [ latest ]
jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
- uses: dorny/[email protected]
id: filter
with:
filters: |
noMessaging:
- 'ecosim/**'
compiler:
- 'core/**'
base:
- 'Base/**'
akka:
- 'Akka/**'
library:
- 'library/**'
example:
- 'example/**'
generatedExample:
- 'generated/**'
- name: noMessaging test
if: ${{ steps.filter.outputs.noMessaging == 'true' }}
run: sbt "project noMessaging; test"
- name: compiler test
if: ${{ steps.filter.outputs.compiler == 'true' }}
run: sbt "project core; test;"
- name: examples compile and run
if: ${{ steps.filter.outputs.generatedExample == 'true' || steps.filter.outputs.example == 'true' || steps.filter.outputs.library == 'true' || steps.filter.outputs.compiler == 'true'}}
run: sbt "project example; runAll"
- name: library test
if: ${{ steps.filter.outputs.library == 'true' }}
run: sbt "project library; test"