Skip to content

Commit

Permalink
refactor: move unit test action to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
marshift committed Aug 29, 2024
1 parent b3940c2 commit 1cfefad
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
name: Run Unit Tests
name: Run unit tests

on:
workflow_dispatch:
push:
branches: [master]
pull_request:
branches: [master]

workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: "22"

- name: Setup Node
uses: actions/setup-node@v2
- uses: pnpm/action-setup@v4
with:
node-version: "16"
version: "9"

- name: Install deps and build
run: npm ci
- name: Install dependencies
run: pnpm i

- name: Test
run: npm test
run: pnpm test

0 comments on commit 1cfefad

Please sign in to comment.