From 0072a9fd8701c552615d50f93b38788ef0f5a42c Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Fri, 26 Apr 2024 11:15:04 +0530 Subject: [PATCH] chore(actions): include basic fmt & lint workflows --- .github/workflows/ci.yaml | 43 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..2da8c07 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,43 @@ +name: CI + +on: + push: + pull_request: + workflow_dispatch: + +defaults: + run: + shell: bash + +jobs: + fmt: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install tooling + uses: ok-nick/setup-aftman@v0.4.2 + with: + cache: true + + - name: Check formatting + run: stylua -c + + lint: + needs: ["fmt"] + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install dependencies + run: wally install + + - name: Install tooling + uses: ok-nick/setup-aftman@v0.4.2 + with: + cache: true + + - name: Analyze + run: luau-lsp analyze --ignore="Packages/**" --settings=".vscode/settings.json" lib/ examples/ mod.luau