Merge pull request #48 from bastienle-gall/main #122
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: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| luacheck: | |
| name: Luacheck | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install luarocks | |
| run: sudo apt-get --install-recommends -y install luarocks | |
| - name: Install luacheck | |
| run: sudo luarocks install luacheck | |
| - name: Check lua codes | |
| run: | | |
| set -o pipefail && luacheck . | awk -F: ' | |
| { | |
| print $0 | |
| printf "::warning file=%s,line=%s,col=%s::%s\n", $1, $2, $3, $4 | |
| } | |
| ' |