diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 40d3457b..f98d71f1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,4 +1,4 @@ -name: Test & Release +name: Tests & Lint on: push: @@ -7,6 +7,36 @@ on: pull_request: jobs: + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v4 + + - name: Setup Node 22 + uses: actions/setup-node@v4 + with: + node-version: 22 + registry-url: https://registry.npmjs.org/ + + - name: Setup PNPM + uses: pnpm/action-setup@v3.0.0 + with: + version: 8.12.1 + + - name: Install deps + run: pnpm install --frozen-lockfile + + - name: Build package + run: pnpm package + + - name: Lint + run: pnpm lint + + - name: Astro & Svelte Check + run: pnpm check + tests: name: Test runs-on: ubuntu-latest @@ -15,7 +45,7 @@ jobs: node: [18, 20, 22] steps: - name: Checkout Repo - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Node ${{ matrix.node }} uses: actions/setup-node@v4 @@ -34,12 +64,6 @@ jobs: - name: Build package run: pnpm package - - name: Lint - run: pnpm lint - - - name: Astro & Svelte Check - run: pnpm check - - name: Test run: pnpm test