name: Build project
on: [push]
jobs:
  build_project:
    runs-on: ubuntu-20.04
    steps:
      - name: Set up Git repository
        uses: actions/checkout@v1
      - name: Build
        run: |
          mvn test --batch-mode
      - name: Install
        run: |
          mvn install --batch-mode

name: Build project
on: [push]
jobs:
  build_project:
    runs-on: ubuntu-20.04
    steps:
      - name: Set up Git repository
        uses: actions/checkout@v2
        with:
          ref: ${{ github.ref }}
      - name: Build
        run: |
          mvn test --batch-mode
      - name: Install
        run: |
          mvn install --batch-mode

Fix CI configuration to checkout the entire branch instead of the latest commit
Fix CI configuration to checkout the entire branch instead of the latest commit
