Skip to content

Commit

Permalink
add prettier github action
Browse files Browse the repository at this point in the history
  • Loading branch information
eimrek committed Mar 19, 2024
1 parent f1bf554 commit 434e52c
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Prettier

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
prettier:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "20"

- name: Install dependencies
run: npm install

- name: Run Prettier
run: npx prettier --check .
2 changes: 1 addition & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState, useEffect } from "react";
import { useState, useEffect } from "react";

import "./App.css";
import StructureVisualizer from "./StructureVisualizer";
Expand Down

0 comments on commit 434e52c

Please sign in to comment.