Skip to content

NetlifyからCloudflare Pagesに移行 #2079

NetlifyからCloudflare Pagesに移行

NetlifyからCloudflare Pagesに移行 #2079

Workflow file for this run

name: Node CI
on:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false
- name: Get pnpm store directory
shell: bash
run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Cache pnpm store
uses: actions/cache@v3
env:
cache-name: pnpm-store
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}
- run: pnpm install --frozen-lockfile
- run: pnpm run build
- run: pnpm run lint