-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (34 loc) · 1.22 KB
/
check.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Static analysis
on:
push:
pull_request:
jobs:
cmake-presets:
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@v4
# https://cmake.org/cmake/help/latest/manual/cmake-presets.7.html#schema
# A machine-readable JSON schema for the CMakePresets.json format.
- run: curl -O https://cmake.org/cmake/help/latest/_downloads/3e2d73bff478d88a7de0de736ba5e361/schema.json
- run: pip3 install jsonschema
- name: Check JSON schema of the CMakePresets.json
run: jsonschema -i CMakePresets.json schema.json
luacheck:
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@v4
- 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 .