fix CI (#1462)
This commit is contained in:
25
.github/workflows/format.yaml
vendored
Normal file
25
.github/workflows/format.yaml
vendored
Normal 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"
|
||||
10
.github/workflows/integration.yaml
vendored
10
.github/workflows/integration.yaml
vendored
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user