ci: run type check in actions
This commit is contained in:
parent
47c7737618
commit
ebf9337b32
1 changed files with 11 additions and 1 deletions
12
.github/workflows/tests.yml
vendored
12
.github/workflows/tests.yml
vendored
|
|
@ -25,12 +25,21 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Stylua
|
- name: Stylua
|
||||||
uses: JohnnyMorganz/stylua-action@v1
|
uses: JohnnyMorganz/stylua-action@v3
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
version: v0.15.2
|
version: v0.15.2
|
||||||
args: --check .
|
args: --check .
|
||||||
|
|
||||||
|
typecheck:
|
||||||
|
name: typecheck
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: stevearc/nvim-typecheck-action@v1
|
||||||
|
with:
|
||||||
|
path: lua
|
||||||
|
|
||||||
run_tests:
|
run_tests:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
|
@ -60,6 +69,7 @@ jobs:
|
||||||
needs:
|
needs:
|
||||||
- luacheck
|
- luacheck
|
||||||
- stylua
|
- stylua
|
||||||
|
- typecheck
|
||||||
- run_tests
|
- run_tests
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue