aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorsitiom <sitiom@disroot.org>2022-07-07 20:44:15 +0800
committerGitHub <noreply@github.com>2022-07-07 05:44:15 -0700
commitd17179dbddcdf05f69b67ac13e2127c58a6295a7 (patch)
tree8279f912042fa8297b07f64e02eba9aae581b655 /.github/workflows
parentfeat(eslint): support yarn2 PnP projects #1777 (diff)
downloadnvim-lspconfig-d17179dbddcdf05f69b67ac13e2127c58a6295a7.tar
nvim-lspconfig-d17179dbddcdf05f69b67ac13e2127c58a6295a7.tar.gz
nvim-lspconfig-d17179dbddcdf05f69b67ac13e2127c58a6295a7.tar.bz2
nvim-lspconfig-d17179dbddcdf05f69b67ac13e2127c58a6295a7.tar.lz
nvim-lspconfig-d17179dbddcdf05f69b67ac13e2127c58a6295a7.tar.xz
nvim-lspconfig-d17179dbddcdf05f69b67ac13e2127c58a6295a7.tar.zst
nvim-lspconfig-d17179dbddcdf05f69b67ac13e2127c58a6295a7.zip
ci(selene): switch to yml config #1986
As of Kampfkarren/selene#364, using TOML is now deprecated.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/lint.yml35
1 files changed, 9 insertions, 26 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 9ce80136..8279196b 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -10,41 +10,24 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
- uses: actions/checkout@v2
-
- - name: Setup luacheck
- run: |
- sudo apt update
- sudo apt install -y lua5.1 luarocks
- sudo luarocks install luacheck
-
- - name: Setup selene
- run: |
- wget "https://github.com/Kampfkarren/selene/releases/download/$VERSION/selene-$VERSION-linux.zip"
- echo "$SHA256_CHECKSUM selene-$VERSION-linux.zip" > "selene-$VERSION-linux.zip.checksum"
- sha256sum --check "selene-$VERSION-linux.zip.checksum"
- unzip "selene-$VERSION-linux.zip"
- install -Dp selene "$HOME/.local/bin/selene"
-
- echo "::add-matcher::.github/workflows/problem_matchers/selene.json"
- env:
- VERSION: "0.15.0"
- SHA256_CHECKSUM: "8ff9272170158fbd9c1af38206ecadc894dc456665dc9bd9f0d43a26e5e8f1af"
-
- - name: Add $HOME/.local/bin to $PATH
- run: echo "$HOME/.local/bin" >> $GITHUB_PATH
+ uses: actions/checkout@v3
- name: Run luacheck
- run: luacheck lua/* test/*
+ uses: lunarmodules/luacheck@v0
+ with:
+ args: lua/* test/*
- name: Run selene
- run: selene --display-style=quiet .
+ uses: NTBBloodbath/selene-action@v1.0.0
+ with:
+ token: ${{ secrets.GITHUB_TOKEN }}
+ args: --display-style=quiet .
style-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
- name: Lint with stylua
uses: JohnnyMorganz/stylua-action@1.0.0