name: Bach.java
on: push
jobs:
  build:
    name: "${{ matrix.os }} + Java ${{ matrix.java }}"
    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-latest, macOS-latest, windows-latest]
        java: [11, 13]
    runs-on: ${{ matrix.os }}
    steps:
    - name: 'Checkout'
      uses: actions/checkout@v1
    - name: 'Set up JDK'
      uses: actions/setup-java@v1
      with:
        java-version: ${{ matrix.java }}
    - name: 'Build with Maven'
      run: |
        cd src
        mvn verify
  jshell:
    name: 'jshell https://bit.ly/bach-jsh'
    runs-on: ubuntu-latest
    steps:
    - name: 'Checkout'
      uses: actions/checkout@v1
    - name: 'Set up JDK'
      uses: actions/setup-java@v1
      with:
        java-version: 11
    - name: 'Invoke Bach.java via JShell'
      run: jshell https://bit.ly/bach-jsh

name: Bach.java
on: push
jobs:
  build:
    name: "${{ matrix.os }} + Java ${{ matrix.java }}"
    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-latest, macOS-latest, windows-latest]
        java: [11, 13]
    runs-on: ${{ matrix.os }}
    steps:
    - name: 'Checkout'
      uses: actions/checkout@v1
    - name: 'Set up JDK'
      uses: actions/setup-java@v1
      with:
        java-version: ${{ matrix.java }}
    - name: 'Cache Maven repository'
      uses: actions/cache@v1
      with:
        path: ~/.m2/repository
        key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
        restore-keys: ${{ runner.os }}-maven-
    - name: 'Build with Maven'
      run: |
        cd src
        mvn verify
  jshell:
    name: 'jshell https://bit.ly/bach-jsh'
    runs-on: ubuntu-latest
    steps:
    - name: 'Checkout'
      uses: actions/checkout@v1
    - name: 'Set up JDK'
      uses: actions/setup-java@v1
      with:
        java-version: 11
    - name: 'Invoke Bach.java via JShell'
      run: jshell https://bit.ly/bach-jsh

Use Actions Cache to cache local Maven repository
Use Actions Cache to cache local Maven repository
