From 3c62386a396ae0c1cd7adbaacc379eb4af072a65 Mon Sep 17 00:00:00 2001 From: William Boman Date: Mon, 15 Aug 2022 21:03:06 +0200 Subject: refactor: introduce selene, harden type defs, and use proper EmmyLua syntax (#296) --- .github/workflows/selene.yml | 20 ++++++++++++++++++++ .github/workflows/stylua.yml | 1 + 2 files changed, 21 insertions(+) create mode 100644 .github/workflows/selene.yml (limited to '.github') diff --git a/.github/workflows/selene.yml b/.github/workflows/selene.yml new file mode 100644 index 00000000..cd174d03 --- /dev/null +++ b/.github/workflows/selene.yml @@ -0,0 +1,20 @@ +name: Selene check + +on: + push: + branches: + - "main" + pull_request: + +jobs: + stylua: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Run Selene check + uses: NTBBloodbath/selene-action@v1.0.0 + with: + # token is needed because the action allegedly downloads binary from github releases + token: ${{ secrets.GITHUB_TOKEN }} + args: lua/ tests/ scripts/ + version: 0.20.0 diff --git a/.github/workflows/stylua.yml b/.github/workflows/stylua.yml index e28130be..e6a2af39 100644 --- a/.github/workflows/stylua.yml +++ b/.github/workflows/stylua.yml @@ -18,3 +18,4 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} # CLI arguments args: --check . + version: 0.14.2 -- cgit v1.2.3-70-g09d2