Skip to content

Commit

Permalink
chore: use pnpm, update jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Yizack committed Jun 23, 2023
1 parent 1800c0a commit c782c5d
Show file tree
Hide file tree
Showing 6 changed files with 3,237 additions and 10,312 deletions.
41 changes: 32 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,51 @@ on:
- "*"
pull_request:
branches:
- master
- main

jobs:
build:
name: Perform tests
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v3
- name: Setup Node
- name: Checkout 🛎️
uses: actions/checkout@v3

- name: Setup Node 🐢
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm

- name: PNPM Setup 🟨
uses: pnpm/action-setup@v2
id: pnpm-install
with:
version: 8
run_install: false

- name: Get pnpm store directory 📁
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm Cache ☁️
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install & Test
- name: Install & Test 🧪
run: |
npm ci
npm run test
pnpm install
pnpm test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
Expand Down
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
shamefully-hoist=true
strict-peer-dependencies=false
2 changes: 1 addition & 1 deletion jsdoc.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"dictionaries": ["jsdoc","closure"]
},
"opts": {
"template": "node_modules/better-docs",
"template": "node_modules/clean-jsdoc-theme",
"readme": "README.md",
"destination": "docs"
},
Expand Down
Loading

1 comment on commit c782c5d

@vercel
Copy link

@vercel vercel bot commented on c782c5d Jun 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.