diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ad27b10..2685183 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,33 +34,15 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Install StyLua + - name: Check Lua Formatting uses: JohnnyMorganz/stylua-action@v4 with: token: ${{ secrets.GITHUB_TOKEN }} version: latest + args: --check assets/scripts/ mods/ - - name: Check Lua Formatting - # A conditional search is used to prevent failures when no Lua files exist yet. - run: | - LUA_FILES=$(find assets/scripts mods -name "*.lua" 2>/dev/null || true) - if [ -z "$LUA_FILES" ]; then - echo "No Lua files found to format." - else - echo "$LUA_FILES" | xargs stylua --check - fi - - - name: Install Selene + - name: Run Selene uses: NTBBloodbath/selene-action@v1.0.0 with: token: ${{ secrets.GITHUB_TOKEN }} - - - name: Run Selene - # A conditional search is used to prevent failures when no Lua files exist yet. - run: | - LUA_FILES=$(find assets/scripts mods -name "*.lua" 2>/dev/null || true) - if [ -z "$LUA_FILES" ]; then - echo "No Lua files found to lint." - else - echo "$LUA_FILES" | xargs selene - fi + args: assets/scripts/ mods/ diff --git a/assets/scripts/core.lua b/assets/scripts/core.lua new file mode 100644 index 0000000..0fd5df2 --- /dev/null +++ b/assets/scripts/core.lua @@ -0,0 +1 @@ +-- Core engine scripts diff --git a/mods/example_mod/init.lua b/mods/example_mod/init.lua new file mode 100644 index 0000000..7ef119e --- /dev/null +++ b/mods/example_mod/init.lua @@ -0,0 +1 @@ +-- Example mod