docs: Update benchmark with Papr v14 and node.js v18 #1416
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
node: [16.x, 18.x, 20.x] | |
steps: | |
- uses: actions/[email protected] | |
- uses: pnpm/[email protected] | |
with: | |
version: 8 | |
- name: Use Node.js ${{ matrix.node }} | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ matrix.node }} | |
cache: 'pnpm' | |
- run: node -v | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm test:build | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: volta-cli/[email protected] | |
- uses: pnpm/[email protected] | |
with: | |
version: 8 | |
- uses: actions/[email protected] | |
with: | |
path: | | |
node_modules | |
key: deps-${{ hashFiles('package.json', 'pnpm-lock.yaml') }} | |
restore-keys: | | |
deps- | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm lint && pnpm pretty:ci | |
unit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: volta-cli/[email protected] | |
- uses: pnpm/[email protected] | |
with: | |
version: 8 | |
- uses: actions/[email protected] | |
with: | |
path: | | |
node_modules | |
key: deps-${{ hashFiles('package.json', 'pnpm-lock.yaml') }} | |
restore-keys: | | |
deps- | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm test | |
types: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: volta-cli/[email protected] | |
- uses: pnpm/[email protected] | |
with: | |
version: 8 | |
- uses: actions/[email protected] | |
with: | |
path: | | |
node_modules | |
key: deps-${{ hashFiles('package.json', 'pnpm-lock.yaml') }} | |
restore-keys: | | |
deps- | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm test:types |