chore(ci): some rewriting, and add test runner

This commit is contained in:
Smirnov Oleksandr 2023-07-06 16:38:10 +03:00
parent 82e739d823
commit a015a6c4bc

View file

@ -2,23 +2,26 @@ name: Format and lint
on: [push, pull_request]
jobs:
format:
name: stylua
lint:
name: lint and format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: JohnnyMorganz/stylua-action@1.0.0
- uses: actions/checkout@v3
- uses: JohnnyMorganz/stylua-action@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: 0.14.0
args: --check .
lint:
name: selene
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: NTBBloodbath/selene-action@v1.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --display-style=quiet .
tests:
name: tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: MunifTanjim/setup-neovim-action@v1
- name: Run tests
run: make test