-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(pre-commit): install required dependencies (#235)
* 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
Showing
2 changed files
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.lua | ||
.luarocks |