-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (37 loc) · 1.1 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:
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
- name: Setup dependencies
run: make deps
- run: echo $(luarocks path --lr-bin) >> $GITHUB_PATH
- name: Run static analysis
run: make check
build-doc:
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
- name: Setup dependencies
run: make deps
- run: echo $(luarocks path --lr-bin) >> $GITHUB_PATH
- name: Build documentation
run: make doc