Skip to content

Update next.config.js #86

Update next.config.js

Update next.config.js #86

Workflow file for this run

name: Application Test
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8.11.0 # pnpm version
run_install: false # 依存関係のインストールをスキップ
- name: Get pnpm store path
shell: bash
run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Setup pnpm cache
uses: actions/cache@v3
with:
path: ${{ env.STORE_PATH }} # キャッシュの保存先を参照
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} # キャッシュキーはpnpm-lock.yaml
restore-keys: ${{ runner.os }}-pnpm-store-
- name: Install
run: pnpm install # キャッシュが存在する場合は再利用
- name: Build
run: pnpm build
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8.11.0
run_install: false
- name: Get pnpm store path
shell: bash
run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Setup pnpm cache
uses: actions/cache@v3
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-pnpm-store-
- name: Install
run: pnpm install
- name: Lint Test
run: pnpm lint
- name: Unit Test
run: pnpm test