Skip to content

Commit

Permalink
chore: update test action
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostdevv committed Oct 2, 2024
1 parent ae4cb05 commit f270125
Showing 1 changed file with 32 additions and 8 deletions.
40 changes: 32 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test & Release
name: Tests & Lint

on:
push:
Expand All @@ -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/[email protected]
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
Expand All @@ -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
Expand All @@ -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

0 comments on commit f270125

Please sign in to comment.