Fixed friction suggestions (#144) #20
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: Lua CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - 'lua-lib/**' | |
| - 'conformance/certs/**' | |
| - 'tools/coverage/**' | |
| - '.github/workflows/lua.yml' | |
| pull_request: | |
| branches: | |
| - master | |
| paths: | |
| - 'lua-lib/**' | |
| - 'conformance/certs/**' | |
| - 'tools/coverage/**' | |
| - '.github/workflows/lua.yml' | |
| defaults: | |
| run: | |
| working-directory: lua-lib | |
| jobs: | |
| test: | |
| name: Test (lua) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| # Pure Lua on LuaSocket + LuaSec; the only setup is the interpreter, | |
| # the two rocks, and the OpenSSL headers LuaSec builds against. | |
| - name: Install Lua, LuaSocket, LuaSec | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libssl-dev lua5.4 liblua5.4-dev luarocks | |
| sudo luarocks install luasocket | |
| sudo luarocks install luasec | |
| - uses: extractions/setup-just@v4 | |
| # `just coverage` runs the protocol unit tests + TCP/TLS integration test | |
| # under a Lua line hook and writes LCOV. | |
| - name: Test with coverage | |
| run: just coverage | |
| - name: Upload coverage to Coveralls | |
| uses: coverallsapp/github-action@v2 | |
| with: | |
| file: lua-lib/coverage.lcov | |
| flag-name: lua |