Skip to content

Commit

Permalink
cicd: test on pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
Naramsim committed Jan 19, 2024
1 parent cef5e65 commit 5c21697
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,37 @@ name: Tests
on: [push, pull_request]

jobs:
unit:
pnpm:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['18']
steps:
- name: Clone repository
uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Setup pokeapi/api-data
run: |
pnpm run apidata:clone
pnpm run apidata:replace
- name: Build
run: |
pnpm run generate:types
pnpm run generate:main
pnpm run generate:jsdocs
- name: Unit test
run: |
pnpm t
npm:
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down

0 comments on commit 5c21697

Please sign in to comment.