build(deps): bump micromatch from 4.0.5 to 4.0.8 #90
Workflow file for this run
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: Packaging Check | |
on: [push, pull_request] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
# Checkout | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# The whole Node.js and pnpm installation and caching | |
# Based on https://github.com/pnpm/action-setup/tree/6e1964dde3397a825e79e4607ad57f3f7ca2c7cb#use-cache-to-reduce-installation-time | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- uses: pnpm/action-setup@v4 | |
name: Install pnpm | |
id: pnpm-install | |
with: | |
version: 9 | |
run_install: false | |
- name: Get pnpm store directory | |
id: pnpm-cache | |
run: | | |
echo "pnpm_cache_dir=$(pnpm store path)" >> ${GITHUB_OUTPUT} | |
- 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: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: SvelteKit Sync | |
run: npx svelte-kit sync | |
- name: Package the lib | |
run: pnpm run package | |
- name: Setup example test | |
run: pnpm run example-build:setup | |
- name: Build example | |
run: pnpm run example-build:build | |
- name: Simple test | |
run: pnpm run example-build:test | |
# Upload test results | |
- name: Upload example build | |
uses: actions/upload-artifact@v3 | |
with: | |
name: example-build | |
path: example-temp/demo |