Skip to content

Commit

Permalink
ci: introduce workflow with luacheck
Browse files Browse the repository at this point in the history
Follows up commit "tests: fix a group of semantic errors".
  • Loading branch information
ligurio committed Jan 31, 2024
1 parent ea0a726 commit fd47c25
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,25 @@ jobs:

- name: Check JSON schema of the CMakePresets.json
run: jsonschema -i CMakePresets.json schema.json

static-analysis:
if: |
github.event_name == 'push' ||
github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3

- name: Setup luarocks
run: sudo apt install -y luarocks

- name: Setup luacheck
run: luarocks --local install luacheck

- run: echo $(luarocks path --lr-bin) >> $GITHUB_PATH

- name: Run luacheck
run: luacheck .

0 comments on commit fd47c25

Please sign in to comment.