fix tests #4
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: 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 dependencies | |
run: pnpm dlx playwright install | |
- name: Run test runner | |
run: | | |
yarn test-storybook:ci | |
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: Run test runner | |
run: | | |
yarn test-storybook:ci |