2020-10-02 11:21:10 +02:00
|
|
|
name: build
|
2022-07-22 20:35:01 +02:00
|
|
|
on: [push, pull_request]
|
2020-10-02 11:21:10 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@master
|
2022-07-22 20:35:01 +02:00
|
|
|
- uses: actions/setup-python@master
|
|
|
|
|
|
|
|
- name: Install pre-commit
|
|
|
|
run: pip3 install pre-commit
|
|
|
|
|
2022-06-13 06:21:04 +02:00
|
|
|
- name: install luarocks
|
2022-07-22 20:35:01 +02:00
|
|
|
run: sudo apt-get install -qq luarocks
|
2022-06-13 06:21:04 +02:00
|
|
|
|
|
|
|
- name: install luacheck via luarocks
|
2020-10-02 11:21:10 +02:00
|
|
|
run: luarocks install --local luacheck
|
|
|
|
|
2022-08-22 21:38:53 +02:00
|
|
|
- name: add luacheck path
|
|
|
|
run: echo "$HOME/.luarocks/bin" >> $GITHUB_PATH
|
|
|
|
|
2022-08-22 21:31:08 +02:00
|
|
|
- name: Run pre-commit
|
|
|
|
run: pre-commit run --all-files
|