Skip to content

Commit

Permalink
build(ci): Move testing steps to Build job
Browse files Browse the repository at this point in the history
  • Loading branch information
thetarnav committed Jan 9, 2025
1 parent 96a6636 commit f74851c
Showing 1 changed file with 5 additions and 21 deletions.
26 changes: 5 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,33 +34,17 @@ jobs:
- name: Build
run: npm run build

- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: dist/

Test:
runs-on: ubuntu-latest

steps:
- name: Checkout Repo
uses: actions/checkout@v4

- name: Setup Node.js 22
uses: actions/setup-node@v4
with:
node-version: 22.x
cache: npm

- name: Install dependencies
run: npm install --no-frozen-lockfile

- name: Typecheck JS
run: npm run typecheck:ts

- name: Test
run: npm run test

- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: dist/

Deploy:
needs: Build
runs-on: ubuntu-latest
Expand Down

0 comments on commit f74851c

Please sign in to comment.