Bump the javascript-dependencies group in /typescript with 11 updates #86
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: 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 |