Skip to content

chore(ci): add run test action #4

chore(ci): add run test action

chore(ci): add run test action #4

Workflow file for this run

name: Unit Tests
on:
pull_request:
release:
types: [published]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18.17'
- name: Install pnpm
run: npm install -g pnpm # Installs pnpm globally
- name: Cache pnpm modules
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Install dependencies
run: pnpm install
- name: Run tests
run: pnpm run test