Skip to content

feat(connect-react): prep preview of @pipedream/connect-react #159

feat(connect-react): prep preview of @pipedream/connect-react

feat(connect-react): prep preview of @pipedream/connect-react #159

name: Run SDK Tests
on:
pull_request:
types: [opened, edited, synchronize]
paths:
- 'packages/sdk/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: pnpm/[email protected]
with:
version: 9.14.2
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: pnpm install
working-directory: packages/sdk
- name: Run tests
run: pnpm test
working-directory: packages/sdk