build: set toc for patch 11.2.5 #110
Workflow file for this run
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: CI | |
| on: | |
| push: | |
| paths: | |
| - '**.lua' | |
| - '.github/workflows/**.yml' | |
| tags: | |
| - '[0-9]+.[0-9]+.[0-9]+' | |
| pull_request: | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Lint | |
| uses: nebularg/actions-luacheck@v1 | |
| with: | |
| annotate: warning | |
| args: --no-color | |
| test: | |
| runs-on: ubuntu-latest | |
| needs: lint | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| with: | |
| submodules: true | |
| - name: Install Lua | |
| uses: leafo/gh-actions-lua@v12 | |
| with: | |
| luaVersion: '5.1.5' | |
| - name: Install LuaRocks | |
| uses: leafo/gh-actions-luarocks@v6 | |
| - name: Install Dependencies | |
| run: | | |
| luarocks install luabitop | |
| luarocks install busted | |
| - name: Test | |
| run: | | |
| cd ./tests | |
| busted -o TAP . | |
| release: | |
| runs-on: ubuntu-latest | |
| needs: test | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Prepare Packager Arguments | |
| id: packager-args | |
| if: github.base_ref || github.ref_type != 'tag' | |
| run: echo "args=-d" >> $GITHUB_OUTPUT | |
| - name: Package and Release | |
| uses: BigWigsMods/packager@v2 | |
| with: | |
| args: ${{ steps.packager-args.outputs.args }} | |
| env: | |
| CF_API_KEY: ${{ secrets.CF_API_KEY }} | |
| GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }} |