Skip to content

ci: fix release submodule installation and update test #1

ci: fix release submodule installation and update test

ci: fix release submodule installation and update test #1

Workflow file for this run

name: Test
on:
workflow_dispatch:
push:
branches: [main]
paths:
- '.github/workflows/test.yml'
- 'src/**'
- 'package.json'
- 'tsconfig.*'
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
- uses: pnpm/[email protected]
with:
version: 8.15.4
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- run: pnpm install
- run: pnpm build
- run: pnpm test