Skip to content

Commit

Permalink
ci(pre-commit): install required dependencies (#235)
Browse files Browse the repository at this point in the history
* ci: install lua, luarocks, luacheck and neovim

* chore: add gitignore

This is necessary due to leafo/gh-actions-lua installing lua and
luarocks in working directory (see 1) which causes
peter-evans/create-pull-request to pick them up as wanted changes.

1) leafo/gh-actions-lua#15
  • Loading branch information
gegoune authored Mar 21, 2023
1 parent 074e13f commit 95b1e30
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/pre-commit-autoupdate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: leafo/gh-actions-lua@v9
with:
luaVersion: "5.1"
- uses: leafo/gh-actions-luarocks@v4
- name: Install luacheck
run: luarocks install luacheck
- uses: rhysd/action-setup-vim@v1
with:
neovim: true
- uses: actions/[email protected]
- run: pip install pre-commit
shell: bash
- run: pre-commit autoupdate
shell: bash
- run: pre-commit run --all-files
shell: bash
- uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.lua
.luarocks

0 comments on commit 95b1e30

Please sign in to comment.