Skip to content

Commit

Permalink
refactor: changed steps order
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-zReeZ committed Jun 25, 2024
1 parent 7980609 commit 92683b6
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/formating.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Check formatting of project files with Prettier

on:
pull_request:
types: [ opened, edited, synchronize ]
types: [opened, edited, synchronize]
branches:
- Dev

Expand All @@ -14,14 +14,15 @@ 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
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- name: Go to interface
run: cd nextjs-interface/
- name: Install dependencies
run: npm install
- name: Check code style with Prettier
Expand All @@ -30,14 +31,15 @@ jobs:
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
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- name: Go to interface
run: cd nextjs-interface/
- name: Install dependencies
run: npm install
- name: Lint code with Eslint
Expand Down

0 comments on commit 92683b6

Please sign in to comment.