Skip to content

πŸ§ͺ More tests #43

πŸ§ͺ More tests

πŸ§ͺ More tests #43

Workflow file for this run

name: πŸ§ͺ Test datapacks
on: [push, pull_request, workflow_dispatch]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Setup environement variables
run: |
pip install -r scripts/requirements.txt
python3 scripts/definitions.py
- name: Download and prepare files
run: |
curl -o server.jar ${{ env.TEST_FABRIC_SERVER }}
mkdir mods
curl -o mods/fabric-api.jar ${{ env.TEST_FABRIC_API }}
curl -o mods/packtest.jar ${{ env.TEST_PACKTEST }}
mkdir -p world
cp -r ${{ env.DATAPACKS_PATH }} world/datapacks
- name: Run tests
run: |
java -Xmx2G -Dpacktest.auto -Dpacktest.auto.annotations -jar server.jar nogui