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

47 lines
833 B
YAML
Raw Normal View History

2019-08-26 20:29:11 +00:00
name: Java CI
on:
push:
branches:
- master
paths:
- 'src/**'
- 'pom.xml'
2019-08-26 20:29:11 +00:00
pull_request:
2020-03-21 18:08:37 +00:00
paths:
2021-08-30 10:15:17 +00:00
- '.github/workflows/**'
2020-03-21 18:08:37 +00:00
- 'src/**'
- 'pom.xml'
2023-01-06 13:05:27 +00:00
- 'CHANGELOG.md'
2019-08-26 20:29:11 +00:00
permissions:
contents: read
2019-08-26 20:29:11 +00:00
jobs:
build:
2020-08-06 07:51:46 +00:00
name: Maven build
2019-08-26 20:29:11 +00:00
runs-on: ubuntu-latest
steps:
2020-03-21 11:55:40 +00:00
- name: Checkout repository
2022-03-01 18:57:28 +00:00
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3.10.0
2019-08-26 20:29:11 +00:00
with:
distribution: 'adopt'
java-version: '17'
java-package: jdk
architecture: x64
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
2019-08-26 20:29:11 +00:00
- name: Build with Maven
2020-11-02 23:56:43 +00:00
run: mvn package --file pom.xml