Skip to content

Bump next from 14.1.1 to 14.2.15 #55

Bump next from 14.1.1 to 14.2.15

Bump next from 14.1.1 to 14.2.15 #55

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
lint:
- eslint
- stylelint
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-
- run: yarn install --frozen-lockfile
- name: Run ${{ matrix.lint }}
run: yarn ${{ matrix.lint }}
build-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v3
with:
path: |
${{ steps.yarn-cache.outputs.dir }}
./.next/cache
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-
- run: yarn install --frozen-lockfile
- name: Run build
run: yarn build
env:
MICROCMS_API_KEY: ${{ secrets.MICROCMS_API_KEY }}
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: artifact
path: out