Skip to content

Merge pull request #206 from runic-inc/ProjectConfigs #354

Merge pull request #206 from runic-inc/ProjectConfigs

Merge pull request #206 from runic-inc/ProjectConfigs #354

name: Run Node tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
run_node_tests:
runs-on: ubuntu-latest
strategy:
matrix:
app:
- name: packages/common
working-directory: ./packages/common
command: pnpm test
- name: packages/pdk
working-directory: ./packages/pdk
command: pnpm test
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
working-directory: ./
- name: build
run: pnpm build
working-directory: ./
- name: Run Tests
working-directory: ${{ matrix.app.working-directory }}
run: |
${{ matrix.app.command }}