Skip to content

upgrade dependencies and package managers #65

upgrade dependencies and package managers

upgrade dependencies and package managers #65

Workflow file for this run

name: Tests
on: [push, pull_request]
# on:
# schedule:
# - cron: '2 2 */1 * *'
# workflow_dispatch:
# push
jobs:
test-pnpm:
runs-on: ubuntu-latest
defaults:
run:
working-directory: pnpm/react-vite
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: false
- 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-
- name: Install dependencies
run: pnpm install
- name: Install Playwright
run: pnpm dlx playwright install
- name: Run Storybook test runner
run: |
yarn test-storybook:ci
# TODO: fix test-runner, which fails with this in pnp mode:
# PlaywrightError: jest-playwright-preset: Cannot find playwright package to use chromium
# test-yarn-pnp:
# runs-on: ubuntu-latest
# defaults:
# run:
# working-directory: yarn-pnp/react-vite
# steps:
# - uses: actions/checkout@v3
# - name: Use Node.js 16.x
# uses: actions/setup-node@v3
# with:
# node-version: 16.x
# - name: Install dependencies
# uses: borales/actions-yarn@v4
# with:
# cmd: install
# dir: 'yarn-pnp/react-vite'
# - name: Install Playwright
# run: yarn dlx playwright install
# - name: Run Storybook test runner
# run: |
# yarn test-storybook:ci