diff --git a/.github/workflows/checks.yaml b/.github/workflows/checks.yaml index 0adb904..f6b0712 100644 --- a/.github/workflows/checks.yaml +++ b/.github/workflows/checks.yaml @@ -26,7 +26,7 @@ jobs: run: | npm ci - checks: + svelte-check: runs-on: ubuntu-latest needs: [npm-install] steps: @@ -51,6 +51,28 @@ jobs: run: | npm run check + + check-lint: + runs-on: ubuntu-latest + needs: [npm-install] + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v2.3.1 + + - name: Use cache for npm 🎁 + id: cache-npm + uses: actions/cache@v2 + with: + path: | + ~/.npm + key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-npm- + + - name: Install npm packages 📦 + run: | + npm ci + - name: Run linter 🕵️ run: | npm run lint