chore: add CI

This commit is contained in:
Smirnov Olexander 2022-06-17 21:58:03 +03:00
parent 4a113e6dcf
commit bc235b7cd3

23
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,23 @@
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 }}
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 .