Skip to content

update to @v4 for all #5

update to @v4 for all

update to @v4 for all #5

Workflow file for this run

# This workflow automatically tests new commits and pull requests as they come in.
# Note that this does not upload any artifacts, you will need to compile mcMMO manually
# if you wish to create the actual jar.
name: Compile and test
on: [push]
jobs:
compile:
name: Maven compiler
runs-on: ubuntu-latest
steps:
# 1. Check out the current working tree
- name: Checkout repository
uses: actions/checkout@v4
# 2. Setup Java 17 JDK (Adopt)
- name: Java 17 setup
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-package: jdk
java-version: '17'
# 3. Setup local Maven package cache to speed up building
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
# 4. Build via Maven
- name: Build via Maven
run: mvn verify -B --file pom.xml -DdisableXmlReport=true
# 5. Upload artefact
- name: Upload
uses: actions/upload-artifact@v4
if-no-files-found: "error"

Check failure on line 41 in .github/workflows/maven.yml

View workflow run for this annotation

GitHub Actions / Compile and test

Invalid workflow file

The workflow is not valid. .github/workflows/maven.yml (Line: 41, Col: 7): Unexpected value 'if-no-files-found'
with:
path: "/home/runner/work/mcMMO/mcMMO/target/mcMMO.jar"
name: "mcMMO.jar"