chore(tooling): Add EmmyLua specific formatting configs #102
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: Busted | |
| on: [ push, pull_request ] | |
| jobs: | |
| busted: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| luaVersion: [ "5.4", "5.3", "5.2", "5.1", "luajit", "luajit-openresty" ] | |
| runs-on: ubuntu-20.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Setup ‘lua’ | |
| uses: leafo/gh-actions-lua@v8 | |
| with: | |
| luaVersion: ${{ matrix.luaVersion }} | |
| - name: Setup ‘luarocks’ | |
| uses: leafo/gh-actions-luarocks@v4 | |
| - name: Setup dependencies | |
| run: | | |
| luarocks install --only-deps -- fluent-dev-0.rockspec | |
| luarocks install busted | |
| luarocks install dkjson | |
| luarocks install luafilesystem | |
| luarocks install lua-path | |
| luarocks install luacov-coveralls | |
| - name: Run busted tests | |
| run: busted -c -v | |
| - name: Report test coverage | |
| if: success() | |
| continue-on-error: true | |
| run: luacov-coveralls -i fluent -e .luarocks | |
| env: | |
| COVERALLS_REPO_TOKEN: ${{ github.token }} |