Added unzip inflate64 unit test. #39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Lua Scripts | |
| on: push | |
| jobs: | |
| Scripts: | |
| name: "Unit Test Scripts" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install Unit test dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y lua5.4 mtools p7zip-full | |
| - uses: actions/checkout@v4 | |
| - name: Run script unit tests | |
| run: | | |
| set -e | |
| WD=$(pwd) | |
| TEST=$(find meta/test -name test.sh -executable -print) | |
| for file in $TEST; do | |
| echo | |
| echo "### Running $file ###" | |
| echo | |
| cd $(dirname $file) | |
| if ! ./$(basename "$file"); then | |
| echo "Error: Script $file failed!" | |
| cd "$WD" | |
| exit 1 | |
| fi | |
| cd $WD | |
| done | |
| - name: Squish all scripts | |
| run: | | |
| find . -name "*.LUA" -type f -exec util/SQUISH.LUA {} + | |
| - name: Run unit tests again on squished versions of script | |
| run: | | |
| set -e | |
| WD=$(pwd) | |
| TEST=$(find meta/test -name test.sh -executable -print) | |
| for file in $TEST; do | |
| echo | |
| echo "### Running $file ###" | |
| echo | |
| cd $(dirname $file) | |
| if ! ./$(basename "$file"); then | |
| echo "Error: Script $file failed!" | |
| cd "$WD" | |
| exit 1 | |
| fi | |
| cd $WD | |
| done |