1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00
Slimefun4/.github/workflows/maven-compiler.yml
2021-05-17 14:32:39 +00:00

33 lines
523 B
YAML

name: Java CI
on:
push:
branches:
- master
paths:
- 'src/**'
- 'pom.xml'
pull_request:
branches:
- master
paths:
- 'src/**'
- 'pom.xml'
jobs:
build:
name: Maven build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v2.1.0
with:
distribution: 'adopt'
java-version: '8'
- name: Build with Maven
run: mvn package --file pom.xml