docs: Update README.md #47
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: Tests | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| jobs: | |
| test: | |
| name: Tests - Lua 5.4 | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install Lux | |
| uses: lumen-oss/gh-actions-lux@v1 | |
| with: | |
| # Pinned to v0.18.8 due to busted/penlight transitive dependency issues | |
| # in newer versions (see lumen-oss/lux#722) | |
| # The publish workflow uses v0.25.3 which doesn't have this issue | |
| # because it doesn't run tests (no busted dependency) | |
| version: 0.18.8 | |
| - name: Run tests | |
| run: | | |
| lx --lua-version 5.4 test | |
| lint: | |
| name: Lint & Format | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install Lux | |
| uses: lumen-oss/gh-actions-lux@v1 | |
| with: | |
| # See comment in test job above for version pinning rationale | |
| version: 0.18.8 | |
| - name: Check formatting | |
| run: | | |
| lx fmt | |
| git diff --exit-code || (echo "::error::Code is not formatted. Run 'lx fmt' locally and commit the changes." && exit 1) | |
| - name: Run linter | |
| run: lx --lua-version 5.4 lint |