aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/scala.yml
blob: 3b18bf9540d9e52266d56a8c2080459e08a72a54 (plain) (blame)
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
name: Scala CI

on:
  push:
    branches: [ master, develop ]
  pull_request:
    branches: [ master, develop ]

jobs:

  build_and_test:
    name: "Build and test"

    runs-on: ubuntu-latest

    steps:

    - uses: actions/checkout@v2

    - name: "Set up JDK 1.8"
      uses: actions/setup-java@v1
      with:
        java-version: 1.8

    - name: Setup RDFox
      run: ./rdfox_setup.sh

    - name: Setup RDFox server path
      run: echo "SERVER_DIR=$HOME/.RDFox" >> "$GITHUB_ENV"
    - name: Setup RDFox license
      env:
        LICENSE_CONTENT: ${{ secrets.LICENSE_CONTENT }}
      run: |
        mkdir -p "$SERVER_DIR"
        echo "$LICENSE_CONTENT" > "$SERVER_DIR/RDFox.lic"

    - name: Build RSAComb
      run: sbt compile

    - name: Run tests
      run: sbt "testOnly * -- -l org.scalatest.tags.Slow"