Bump the dependencies group across 1 directory with 8 updates #1905
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint_build: | |
name: Lint and Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: ${{ github.workspace }}/.next/cache | |
# Generate a new cache whenever packages or source files change. | |
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }} | |
# If source files changed but packages didn't, rebuild from a prior cache. | |
restore-keys: | | |
${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}- | |
- uses: actions/cache@v4 | |
with: | |
path: .eslintcache | |
key: eslint | |
restore-keys: | | |
eslint | |
- uses: actions/setup-node@v4 | |
with: | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn | |
- name: Run ESLint and Stylelint | |
run: yarn lint | |
- name: Run Prettier | |
run: yarn format | |
- name: Build project | |
run: yarn build |