From e8dbc3c31b98de0ac705d48ffbd52f58a0ae231f Mon Sep 17 00:00:00 2001 From: Hennadii Chernyshchyk Date: Wed, 21 Sep 2022 23:08:04 +0300 Subject: Add CI --- .github/workflows/main.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..744e3cd --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,38 @@ +name: Main +on: + push: + paths-ignore: + - 'pack' + - '**.md' + - '.gitignore' + pull_request: + paths-ignore: + - 'pack' + - '**.md' + - '.gitignore' +jobs: + lint: + name: Lint + runs-on: ubuntu-20.04 + steps: + - name: Clone repo + uses: actions/checkout@v3 + + - name: Luacheck + uses: nebularg/actions-luacheck@v1 + with: + files: . + annotate: warning + + format: + name: Format + runs-on: ubuntu-20.04 + steps: + - name: Clone repo + uses: actions/checkout@v3 + + - name: StyLua + uses: JohnnyMorganz/stylua-action@v1.1.1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + args: --color always --check . -- cgit v1.2.3