Skip to content

Commit

Permalink
ci: various fixes
Browse files Browse the repository at this point in the history
- bump action versions
- use stylua action to simplify linting and speed up workflow
- combine workflows into a single workflow
  • Loading branch information
dundargoc committed Nov 3, 2023
1 parent c1aebba commit 5fb83a0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 28 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/format.yml

This file was deleted.

15 changes: 13 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name: Lint
on: [push, pull_request]

jobs:
lint:
luacheck:
name: Luacheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup
run: |
sudo apt-get update
Expand All @@ -16,3 +16,14 @@ jobs:
- name: Lint
run: luacheck lua/ --globals vim

stylua:
name: Stylua
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: JohnnyMorganz/stylua-action@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
args: --color always --check --check lua/ --config-path=.stylua.toml

0 comments on commit 5fb83a0

Please sign in to comment.