name: Tests (with Maven)

on:
  push:
    branches:
      - master

  pull_request:
    branches:
      - master


jobs:
  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: Cache Maven packages
      uses: actions/cache@v2
      with:
        path: ~/.m2
        key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
        restore-keys: ${{ runner.os }}-m2
    
    - name: Build and test with Maven
      run: mvn -B verify --file pom.xml



Add GitHub Action to build and test the code
Add GitHub Action to build and test the code
