Prefire: satisfy stylua 2.5.2 and the type checker #1502
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: Run Unit Tests | |
| on: | |
| push: | |
| branches: ['*'] | |
| pull_request: | |
| branches: ['*'] | |
| jobs: | |
| busted: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install Lua 5.1 | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y --no-install-recommends lua5.1 liblua5.1-0-dev | |
| - name: Install Lux | |
| env: | |
| LUX_VERSION: '0.28.3' | |
| run: | | |
| # Fetch the prebuilt `lx` straight from the release page. Resolving | |
| # it through cargo-binstall (or the lux action) goes via the GitHub | |
| # API, which sporadically rate-limits unauthenticated runners; | |
| # release downloads don't count against that limit. | |
| curl -L --proto '=https' --tlsv1.2 -sSf \ | |
| "https://github.com/nvim-neorocks/lux/releases/download/v${LUX_VERSION}/lx-x86_64-unknown-linux-gnu.tar.gz" \ | |
| | sudo tar -xz -C /usr/local/bin lx | |
| lx --version | |
| - name: Cache Lux dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: .lux | |
| key: lux-5.1-${{ runner.os }}-${{ hashFiles('lux.lock') }} | |
| restore-keys: | | |
| lux-5.1-${{ runner.os }}- | |
| - name: Run busted | |
| run: lx --lua-version 5.1 test |