Skip to content

Bump eslint-config-next from 15.0.0 to 15.0.1 #114

Bump eslint-config-next from 15.0.0 to 15.0.1

Bump eslint-config-next from 15.0.0 to 15.0.1 #114

Workflow file for this run

name: Node.js CI
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
workflow_dispatch: # Allows manual trigger
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20, 22]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
check-latest: true
cache: 'yarn'
- name: Enable Corepack
run: corepack enable # Enable Corepack to manage Yarn versions
- name: Set Yarn to version 2
run: yarn set version berry # Set Yarn to v2 (Berry)
- name: Cache Yarn and Next.js build
uses: actions/cache@v4
with:
path: |
.yarn/cache
.next/cache
key: ${{ runner.os }}-node-${{ matrix.node-version }}-nextjs-${{ hashFiles('yarn.lock', 'src/**/*') }}
restore-keys: |
${{ runner.os }}-node-${{ matrix.node-version }}-nextjs-${{ hashFiles('yarn.lock') }}-
- name: Install dependencies
run: yarn install
- name: Build project
run: yarn build
- name: Run tests
run: yarn test