Skip to content

yarn から pnpm に変更 #2147

yarn から pnpm に変更

yarn から pnpm に変更 #2147

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v4
with:
version: '10.4.0'
- uses: actions/setup-node@v3
with:
node-version-file: '.node-version'
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm build
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v4
with:
version: '10.4.0'
- uses: actions/setup-node@v3
with:
node-version-file: '.node-version'
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm build
- name: Test
run: pnpm test
env:
CI: 'true'
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v4
with:
version: '10.4.0'
- uses: actions/setup-node@v3
with:
node-version-file: '.node-version'
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm build
- run: pnpm lint
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v4
with:
version: '10.4.0'
- uses: actions/setup-node@v3
with:
node-version-file: '.node-version'
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm build
- run: pnpm typecheck
typecheck-config:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v4
with:
version: '10.4.0'
- uses: actions/setup-node@v3
with:
node-version-file: '.node-version'
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm typecheck:config
a11y:
if: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: '10.4.0'
- uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
cache: pnpm
- run: pnpm install --frozen-lockfile
- name: Cache Playwright runners
uses: actions/cache@v4
with:
path: |
/home/runner/.cache/ms-playwright/
key: ${{ runner.os }}-playwright-runner
- name: Install Playwright
run: pnpm playwright install --with-deps
- name: Build Storybook
run: |
pnpm build
pnpm storybook:build --quiet
- name: a11y test by Run TestRunner
run: |
pnpm test:a11y