make `datapack` workflow compile AJ export files
Closed this issue · 0 comments
ever since #71 deleted AJ export files from the repo, the datapack test server (packtest
) will no longer be able to call animated_java
functions it was previously able to in tests. this means that we can't actually test any map functionality that relies on Animated Java export files. this includes:
- attacks
- soul events
- anything with a model, e.g. Flowey model stuff
the bulk of important map functionality relies directly on Animated Java
work of this ticket is to change the .github/workflows/datapack.yml
workflow to TL;DR do the setup steps we defined in the README to be able to run the auto-export script. that is:
- download and install Blockbench to the runner
- install our
bb-cli
plugin - install AJ at some version
setup steps above are from the README:
omega-flowey-minecraft-remastered/README.md
Lines 60 to 65 in f531255
we should also definitely implement some caching so the github runner doesn't need to do all those steps everytime it runs -- if we use the same version of blockbench, bb-cli, and our AJ fork plugin, the runner should be able to restore all of that from cache and save (probably a lot of) time
after Blockbench and our required plugins are installed, we should be able to make the workflow run our AJ export scripts (yarn start export
) to generate the AJ export files, just like we do during local development.
datapack unit test workflow at time of writing:
omega-flowey-minecraft-remastered/.github/workflows/datapack.yml
Lines 36 to 57 in 1fa99b3