name: sparkMeasure CI

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

jobs:
  build:

    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: Build and run tests for all scala versions supported
      run: sbt +test
    - name: Package
      run: sbt +package
    - uses: actions/upload-artifact@v2
      with:
        name: sparkMeasure package scala 2.13
        path: /home/runner/work/sparkMeasure/sparkMeasure/target/scala-2.13/*.jar
    - uses: actions/upload-artifact@v2
      with:
        name: sparkMeasure package scala 2.12
        path: /home/runner/work/sparkMeasure/sparkMeasure/target/scala-2.12/*.jar

name: sparkMeasure CI

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

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: Set up JDK 11
      uses: actions/setup-java@v1
      with:
        java-version: 11
    - name: Build and run tests for all scala versions supported
      run: sbt +test
    - name: Package
      run: sbt +package
    - uses: actions/upload-artifact@v2
      with:
        name: sparkMeasure package scala 2.13
        path: /home/runner/work/sparkMeasure/sparkMeasure/target/scala-2.13/*.jar
    - uses: actions/upload-artifact@v2
      with:
        name: sparkMeasure package scala 2.12
        path: /home/runner/work/sparkMeasure/sparkMeasure/target/scala-2.12/*.jar

Update Java used for CI to Java 11
Update Java used for CI to Java 11
