chore(ci): some rewriting, and add test runner
This commit is contained in:
parent
82e739d823
commit
a015a6c4bc
1 changed files with 14 additions and 11 deletions
25
.github/workflows/ci.yml
vendored
25
.github/workflows/ci.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue