Add detection of conflicting global type redefinitions #857
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: | |
| pull_request: | |
| workflow_dispatch: | |
| push: | |
| branches: main | |
| jobs: | |
| Test: | |
| strategy: | |
| matrix: | |
| lua-version: ["5.4", "5.3", "5.2", "5.1", "luajit"] | |
| os: ["ubuntu-latest"] | |
| include: | |
| - os: "macos-latest" | |
| lua-version: "5.4" | |
| - os: "windows-latest" | |
| lua-version: "luajit" | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@master | |
| - uses: luarocks/gh-actions-lua@master | |
| with: | |
| luaVersion: ${{ matrix.lua-version }} | |
| - uses: luarocks/gh-actions-luarocks@master | |
| - name: Cache LuaRocks packages | |
| id: cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ runner.os == 'Windows' && 'C:\\Users\\runneradmin\\AppData\\Roaming\\luarocks' || format('{0}/.luarocks', github.workspace) }} | |
| key: ${{ runner.os }}-luarocks-${{ matrix.lua-version }}-${{ hashFiles('**/luarocks.lock') }} | |
| - name: Build | |
| run: | | |
| luarocks make --only-deps | |
| - name: Test | |
| run: | | |
| luarocks lint tl-dev-1.rockspec | |
| make selfbuild | |
| luarocks test |