Skip to content

chore: update packages (#485) #274

chore: update packages (#485)

chore: update packages (#485) #274

Workflow file for this run

name: Build and Test
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: pnpm/action-setup@v3
with:
version: 8.8.0
- uses: actions/checkout@v2
- name: Cache PNPM dependencies
uses: actions/cache@v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
run: pnpm install
- name: Cache build artifacts
uses: actions/cache@v4
with:
path: dist
key: ${{ runner.os }}-build-${{ matrix.node-version }}
restore-keys: |
${{ runner.os }}-build-
- name: Build
run: pnpm rollup
- name: Unit Tests
run: pnpm test