diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 78573e4..231ce6f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,14 +1,23 @@ name: lint -on: - pull_request: - branches: - - main +on: [push, pull_request] +# on: +# pull_request: +# branches: +# - main jobs: lint: runs-on: [ubuntu-latest] steps: + - uses: actions/checkout@v2 + - name: Setup + run: | + sudo apt-get update + sudo apt-get install luarocks + sudo luarocks install luacheck + - name: Lint + run: luacheck lua/ --globals vim # - name: Checkout sources # uses: actions/checkout@v2 # - name: Setup luacheck @@ -20,17 +29,6 @@ jobs: # run: | # luacheck lua/* - - - uses: actions/checkout@v2 - - name: Setup - run: | - sudo apt-get update - sudo apt-get install luarocks - sudo luarocks install luacheck - - - name: Lint - run: luacheck lua/ --globals vim - format: runs-on: [ubuntu-latest] steps: