From 4e8a62fed1f537edbee3c4fd7d81f645a69d4bb5 Mon Sep 17 00:00:00 2001 From: Matthew McEachen Date: Sun, 17 Nov 2024 20:08:31 -0800 Subject: [PATCH] add lint job to test.yml --- .github/workflows/test.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a5f11e1..bd979a5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,6 +8,24 @@ on: branches: [main] jobs: + lint: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Use Node.js 22.x + uses: actions/setup-node@v4 + with: + node-version: 22.x + cache: "npm" + + - name: Install dependencies + run: npm install + + - name: Run lint + run: npm run lint + test: strategy: fail-fast: false @@ -31,10 +49,10 @@ jobs: cache: "npm" - name: Install dependencies - run: npm ci + run: npm install - name: Build run: npm run build - name: Run tests - run: npm test \ No newline at end of file + run: npm test