Skip to content

User friendly error and warning message #15

User friendly error and warning message

User friendly error and warning message #15

name: Build and Compile Next.js App
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Cache depedencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
run: npm install
- name: Lint
run: npm run lint
- name: Compile Next.js app
run: npm run build