This commit is contained in:
NAKAI Tsuyoshi
2023-02-27 15:28:01 +09:00
committed by GitHub
parent 7a3b1e76f7
commit 339186c979
6 changed files with 29 additions and 97 deletions

25
.github/workflows/format.yaml vendored Normal file
View File

@@ -0,0 +1,25 @@
name: format
on:
push:
branches:
- main
paths:
- '**.lua'
jobs:
postprocessing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Format with Stylua
uses: JohnnyMorganz/stylua-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: v0.16.1
args: ./lua
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "Format with stylua"

View File

@@ -16,13 +16,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Setup rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
default: true
override: true
- name: Setup neovim
uses: rhysd/action-setup-vim@v1
with:
@@ -40,12 +33,9 @@ jobs:
- name: Setup tools
shell: bash
run: |
sudo apt install -y curl unzip --no-install-recommends
bash ./utils/install_stylua.sh
luarocks install luacheck
luarocks install vusted
- name: Run tests
shell: bash
run: make integration