From 66db8e062b962e491a2043b85c7a61b700e1103d Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Thu, 28 Mar 2024 16:22:06 +0530 Subject: [PATCH] chore(actions): fix failing lint --- .github/workflows/ci.yaml | 38 +++++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index dec6a18..46b5879 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -11,7 +11,6 @@ defaults: jobs: fmt: - name: Check formatting runs-on: ubuntu-latest steps: - name: Checkout repository @@ -34,22 +33,6 @@ jobs: - name: Check formatting run: pnpm check_fmt - lint: - needs: ["fmt"] - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Install tooling - uses: ok-nick/setup-aftman@v0.4.2 - - - name: Analyze - run: luau-lsp analyze --settings=".vscode/settings.json" tests - - - name: Lint - run: pnpm lint - ci: needs: ["fmt"] runs-on: ubuntu-latest @@ -76,3 +59,24 @@ jobs: - name: Test run: pnpm test + + lint: + needs: ["ci"] + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install tooling + uses: ok-nick/setup-aftman@v0.4.2 + + - name: Build + run: pnpm build + + - name: Analyze + run: luau-lsp analyze --settings=".vscode/settings.json" tests + + - name: Lint + run: pnpm lint + +