Skip to content

Bump the javascript-dependencies group across 1 directory with 13 upd… #87

Bump the javascript-dependencies group across 1 directory with 13 upd…

Bump the javascript-dependencies group across 1 directory with 13 upd… #87

Workflow file for this run

name: Next.js CI
on:
push:
paths:
- 'typescript/**'
- '.github/**'
jobs:
next-build:
name: Build next.js
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./typescript
env:
NEXT_PUBLIC_API_URL: ${{ vars.NEXT_PUBLIC_API_URL }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Run build
run: npm run build
next-lint:
name: Run eslint for next.js
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./typescript
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Run lint check
run: npm run lint
- name: Reviewdog
uses: reviewdog/action-eslint@v1
with:
workdir: typescript
next-prettier:
name: Run prettier for next.js
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./typescript
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Run format code
run: npm run format
- name: Check diff exists and commit if any
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add .
if ! git diff --cached --quiet; then
git commit -m "Apply code formatting"
git push
else
echo "No changes to commit"
fi