Skip to content

Setting git username for tests #49

Setting git username for tests

Setting git username for tests #49

Workflow file for this run

name: Build and test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 11, 21 ]
name: Java ${{ matrix.java }} build
steps:
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Cache the Maven packages to speed up build
uses: actions/cache@v1
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "Test user"
- name: Build with Maven on JDK ${{ matrix.java }}
run: mvn --batch-mode --update-snapshots verify