chore(ci): update and add one more linter

This commit is contained in:
Smirnov Oleksandr 2023-07-20 00:02:26 +03:00
parent e9360a2c92
commit 27b56642f4
2 changed files with 22 additions and 24 deletions

View file

@ -1,24 +0,0 @@
name: Format and lint
on: [push, pull_request]
jobs:
format:
name: stylua
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: JohnnyMorganz/stylua-action@1.0.0
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 .

22
.github/workflows/linters.yml vendored Normal file
View file

@ -0,0 +1,22 @@
name: linters
on: [push, pull_request]
jobs:
linters:
name: linters
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: JohnnyMorganz/stylua-action@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
args: --check .
- uses: NTBBloodbath/selene-action@v1.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: .
- uses: editorconfig-checker/action-editorconfig-checker@main
- run: editorconfig-checker