Update README.md #240
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/paths-filter@v2.2.1 | |
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" | |