envelopes/.github/workflows/pre-commit.yml
rainer 2dd6e44c3c
Some checks failed
pre-commit / build (push) Has been cancelled
init
2026-02-12 12:51:00 +01:00

25 lines
583 B
YAML

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