mirror of
https://github.com/ViaVersion/ViaNBT.git
synced 2024-06-28 10:44:52 +02:00
Updates checkout and setup-java from v1 -> v4, Then adds the distribution and check-latest flags to clarify what JDK engine we want and finally freeze the ubuntu version to specific version.
17 lines
387 B
YAML
17 lines
387 B
YAML
name: Java CI with Maven
|
|
on: [push, pull_request]
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v4
|
|
- name: Set up JDK 8
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: 8
|
|
check-latest: true
|
|
- name: Build with Maven
|
|
run: mvn package --file pom.xml
|