commit
2dd6e44c3c
11 changed files with 281 additions and 0 deletions
25
.github/workflows/pre-commit.yml
vendored
Normal file
25
.github/workflows/pre-commit.yml
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
name: pre-commit
|
||||
on: [push, pull_request, workflow_dispatch]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- uses: actions/setup-python@master
|
||||
|
||||
- name: install luarocks
|
||||
run: sudo apt-get install -y luarocks
|
||||
|
||||
- name: luacheck install
|
||||
run: luarocks install --local luacheck
|
||||
|
||||
- name: add luacheck path
|
||||
run: echo "$HOME/.luarocks/bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Install pre-commit
|
||||
run: pip3 install pre-commit
|
||||
|
||||
- name: Run pre-commit
|
||||
run: pre-commit run --all-files
|
||||
Loading…
Add table
Add a link
Reference in a new issue