Skip to content

fix: Fixed prettier config #9

fix: Fixed prettier config

fix: Fixed prettier config #9

Workflow file for this run

name: Check formatting of project files with Prettier
on:
pull_request:
types: [opened, edited, synchronize]
branches:
- Dev
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
prettier:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
cache-dependency-path: nextjs-interface/package-lock.json
- name: Go to interface
run: cd nextjs-interface/
- name: Install dependencies
run: npm install
- name: Check code style with Prettier
run: npm run format:check
eslint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
cache-dependency-path: nextjs-interface/package-lock.json
- name: Go to interface
run: cd nextjs-interface/
- name: Install dependencies
run: npm install
- name: Lint code with Eslint
run: npm run lint