name: Prek
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
jobs:
prek:
if: github.head_ref == '' || !startsWith(github.head_ref, 'release-plz-')
runs-on: ubuntu-latest
steps:
- name: install readline headers
run: sudo apt-get -y update && sudo apt-get -y install libreadline-dev
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- name: Setup Lux
uses: lumen-oss/gh-actions-lux@d12a6bdf3a380de5b9d142272e6fd95d28b44b8d with:
version: ${{ vars.LUX_VERSION }}
- name: Sync project
run: |
lx --no-luarc --lua-version ${{ vars.LUA_VERSION }} sync
- name: Run prek
uses: j178/prek-action@bdca6f102f98e2b4c7029491a53dfd366469e33d