Skip to content

Commit

Permalink
chore(github): add checks for CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Mar 14, 2023
1 parent c1fb750 commit 2050232
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Style Check

on:
push:
branches: [main]
pull_request:

jobs:
style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: JohnnyMorganz/stylua-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
# CLI arguments
args: --check .
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: lunarmodules/luacheck@v1
11 changes: 11 additions & 0 deletions .luacheckrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
globals = {
"astronvim",
"vim",
}

cache = true
self = false
ignore = {
"631", -- max_line_length
"212/_.*", -- unused argument, for vars with "_" prefix
}

0 comments on commit 2050232

Please sign in to comment.