Skip to content

Commit

Permalink
[no-issue] ci: pretier-check 추가 (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
luciancah authored Jul 24, 2024
1 parent d5f8ac0 commit 14d0737
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 9 deletions.
8 changes: 2 additions & 6 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"files": [
"README.md"
],
"files": ["README.md"],
"imageSize": 100,
"commit": false,
"commitType": "docs",
Expand All @@ -12,9 +10,7 @@
"name": "Jinhyung Lee",
"avatar_url": "https://avatars.githubusercontent.com/u/8311335?v=4",
"profile": "https://blog.luciancah.com",
"contributions": [
"doc"
]
"contributions": ["doc"]
}
],
"contributorsPerLine": 7,
Expand Down
Binary file removed .github/screenshot.png
Binary file not shown.
32 changes: 32 additions & 0 deletions .github/workflows/prettier-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Continuous Integration

# This action works with pull requests and pushes on the main branch
on:
pull_request:
push:
branches: [main]

jobs:
prettier:
name: Prettier Check
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Run Prettier
id: prettier-run
uses: rutajdash/[email protected]
with:
config_path: './.prettierrc'
file_pattern: '**/*'


# This step only runs if prettier finds errors causing the previous step to fail
# This steps lists the files where errors were found
- name: Prettier Output
if: ${{ failure() }}
shell: bash
run: |
echo "The following files are not formatted:"
echo "${{steps.prettier-run.outputs.prettier_output}}"
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
origin
origin/
node_modules/
*.yaml
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
## 안녕하세요!

<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->

[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors-)

<!-- ALL-CONTRIBUTORS-BADGE:END -->

- [Next.js 문서](https://nextjs.org/docs)의 전체 한국어 번역을 목표로 합니다.
Expand All @@ -16,8 +18,6 @@

[기여 안내서](https://github.com/luciancah/nextjs-ko/blob/main/CONTRIBUTING.MD)와 등록된 Issue를 확인해 주세요.



<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
Expand Down

0 comments on commit 14d0737

Please sign in to comment.