Skip to content

add github actions file #2

add github actions file

add github actions file #2

Workflow file for this run

name: Build
on:
workflow_dispatch:
pull_request:
types:
- opened
- reopened
- synchronize
push:
branches:
- '**'
jobs:
first_job:
runs-on: ubuntu-latest
steps:
- name: Download repository
uses: actions/checkout@v2
- name: Set up JDK 14
uses: actions/setup-java@v1
with:
java-version: 14
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Test with Maven
run: mvn -B test --file pom.xml