fix(deps): update dependency svelte to v5 #1503
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test examples | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- uses: actions/checkout@master | |
with: | |
submodules: "recursive" | |
- name: Setup pnpm | |
uses: pnpm/[email protected] | |
with: | |
run_install: false | |
- name: Get pnpm store directory | |
id: pnpm-cache | |
shell: bash | |
run: | | |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT | |
- uses: actions/[email protected] | |
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- | |
- name: "Build local version of Plasmo" | |
run: | | |
pnpm i --no-frozen-lockfile | |
pnpm run build:packages | |
pnpm run build:api | |
pnpm i | |
pnpm run build:cli | |
pnpm i | |
- name: "Build all examples" | |
run: pnpm run build:examples | |
- name: "Test all examples" | |
run: pnpm run test:examples | |