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] on: [push, pull_request]
jobs: jobs:
format: lint:
name: stylua name: lint and format
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: JohnnyMorganz/stylua-action@1.0.0 - uses: JohnnyMorganz/stylua-action@v3
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
version: 0.14.0
args: --check . args: --check .
lint:
name: selene
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: NTBBloodbath/selene-action@v1.0.0 - uses: NTBBloodbath/selene-action@v1.0.0
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
args: --display-style=quiet . 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