From bc235b7cd34ea53d9b12be6a53cddb54d4a1f3d7 Mon Sep 17 00:00:00 2001 From: Smirnov Olexander Date: Fri, 17 Jun 2022 21:58:03 +0300 Subject: [PATCH] chore: add CI --- .github/workflows/ci.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..7b78986 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 .