diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml new file mode 100644 index 000000000..963e2266b --- /dev/null +++ b/.github/workflows/check.yaml @@ -0,0 +1,26 @@ +name: Run checks + +on: + push: + pull_request: + +jobs: + luacheck: + runs-on: ubuntu-latest + if: | + github.event_name == 'push' || + github.event_name == 'pull_request' && + github.event.pull_request.head.repo.full_name != github.repository + steps: + - uses: actions/checkout@master + + - name: Setup Tarantool + uses: tarantool/setup-tarantool@v1 + with: + tarantool-version: '2.8' + + - name: Setup luacheck + run: tarantoolctl rocks install luacheck 0.25.0 + + - name: Run luacheck + run: ./.rocks/bin/luacheck .