commit 514a2051d89dfba098afc39dca5726d3ec92c98e from: Sergey Bronnikov date: Mon May 29 12:15:40 2023 UTC ci: add workflow with luacheck commit - a252cb8bb9f2abf84ce11a569e92d659761ab754 commit + 514a2051d89dfba098afc39dca5726d3ec92c98e blob - /dev/null blob + 353636c66a2fd59be14c870203c2bd93d40e1398 (mode 644) --- /dev/null +++ .github/workflows/check.yaml @@ -0,0 +1,27 @@ +name: Static analysis + +on: + push: + pull_request: + +jobs: + static-analysis: + if: | + github.event_name == 'push' || + github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository + strategy: + fail-fast: false + runs-on: [ubuntu-latest] + steps: + - uses: actions/checkout@v3 + + - name: Setup luarocks + run: sudo apt install -y luarocks + + - run: echo $(luarocks path --lr-bin) >> $GITHUB_PATH + + - name: Setup dependencies + run: luarocks --local install luacheck + + - name: Run static analysis + run: luacheck .