Skip to content

fix: Fixed prettier config #5

fix: Fixed prettier config

fix: Fixed prettier config #5

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: Go to interface
run: cd nextjs-interface
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- name: Install dependencies
run: npm install
- name: Check code style with Prettier
run: npm run format:check
eslint:
runs-on: ubuntu-latest
steps:
- name: Go to interface
run: cd nextjs-interface
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- name: Install dependencies
run: npm install
- name: Lint code with Eslint
run: npm run lint