-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Marukome0743/main
Changes to be committed:
- Loading branch information
Showing
32 changed files
with
3,357 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
**/.next | ||
**/next-env.d.ts | ||
**/node_modules | ||
.editorconfig | ||
.eslintrc.json | ||
.git | ||
.github | ||
.gitignore | ||
.next | ||
.vscode | ||
CODE_OF_CONDUCT.md | ||
LICENSE | ||
README.md | ||
SECURITY.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# https://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 2 | ||
indent_style = space | ||
insert_final_newline = true | ||
max_line_length = 80 | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
max_line_length = 0 | ||
trim_trailing_whitespace = false | ||
|
||
[COMMIT_EDITMSG] | ||
max_line_length = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "next/core-web-vitals" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
*.css text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 | ||
*.js text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 | ||
*.jsx text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 | ||
*.tsx text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 | ||
*.ts text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 | ||
*.yml text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 | ||
*.json text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 | ||
*.lock text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 | ||
*.md text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 | ||
*.mjs text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 | ||
*.mts text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 | ||
|
||
.vscode/launch.json linguist-generated | ||
*.lockb binary diff=lockb |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @Marukome0743 @kazutan1230 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
name: "\U0001F41B Bug report" | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: bug | ||
assignees: '' | ||
|
||
--- | ||
|
||
<!-- | ||
Please provide a clear and concise description of what the bug is. Include | ||
screenshots if needed. Please test using the latest version of the relevant | ||
homepage packages to make sure your issue has not already been fixed. | ||
--> | ||
|
||
homepage version: | ||
|
||
## Steps To Reproduce | ||
|
||
1. | ||
2. | ||
|
||
<!-- | ||
Your bug will get fixed much faster if we can run your code and it doesn't | ||
have dependencies other than homepage. Issues without reproduction steps or | ||
code examples may be immediately closed as not actionable. | ||
--> | ||
|
||
Link to code example: | ||
|
||
<!-- | ||
Please provide a CodeSandbox (https://codesandbox.io/s/new), a link to a | ||
repository on GitHub, or provide a minimal code example that reproduces the | ||
problem. You may provide a screenshot of the application if you think it is | ||
relevant to your bug report. Here are some tips for providing a minimal | ||
example: https://stackoverflow.com/help/mcve. | ||
--> | ||
|
||
## The current behavior | ||
|
||
|
||
## The expected behavior |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: "\U0001F680 Feature request" | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: enhancement | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "npm" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "daily" | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!-- | ||
Thanks for submitting a pull request! | ||
We appreciate you spending the time to work on these changes. Please provide enough information so that others can review your pull request. | ||
--> | ||
|
||
### What does this PR do? | ||
|
||
<!-- **Please explain what your changes do**, example: --> | ||
|
||
- [ ] Documentation or TypeScript types (it's okay to leave the rest blank in this case) | ||
- [ ] Code changes | ||
|
||
### How did you verify your code works? | ||
|
||
<!-- **For code changes, please include automated tests**. Feel free to uncomment the line below --> | ||
|
||
<!-- I wrote automated tests --> | ||
|
||
<!-- | ||
Demonstrate the code is solid. Example: The exact commands you ran and their output, screenshots / videos if the pull request changes the user interface. | ||
How exactly did you verify that your PR solves the issue you wanted to solve? | ||
If you leave this empty, your PR will very likely be closed. | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
name: Bun CI | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
paths: | ||
- "app/**" | ||
- "public/**" | ||
- "next.config.js" | ||
- "package.json" | ||
- "postcss.config.js" | ||
- "tailwind.config.ts" | ||
- "tsconfig.json" | ||
- "yarn.lock" | ||
pull_request: | ||
branches: [ "main" ] | ||
paths: | ||
- "app/**" | ||
- "public/**" | ||
- "next.config.js" | ||
- "package.json" | ||
- "postcss.config.js" | ||
- "tailwind.config.ts" | ||
- "tsconfig.json" | ||
- "yarn.lock" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: type-tests | ||
runs-on: ubuntu-latest | ||
outputs: | ||
failing_tests: ${{ steps.test.outputs.failing_tests }} | ||
failing_tests_count: ${{ steps.test.outputs.failing_tests_count }} | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
- name: Install bun | ||
uses: oven-sh/setup-bun@v1 | ||
|
||
- name: Install dependencies | ||
run: bun i | ||
- name: Format app | ||
run: bun run lint | ||
- name: Build app | ||
run: bun run build | ||
- name: Test app | ||
run: bun test | ||
|
||
- name: Comment on PR | ||
if: steps.test.outputs.failing_tests != '' && github.event_name == 'pull_request' | ||
uses: thollander/actions-comment-pull-request@v2 | ||
with: | ||
comment_tag: test-failures-${{ github.workflow }} | ||
message: | | ||
❌ @${{ github.actor }} ${{ steps.test.outputs.failing_tests_count }} files with test failures on ${{ github.workflow }}: | ||
${{ steps.test.outputs.failing_tests }} | ||
**[View test output](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})** | ||
<sup>[#${{ github.sha }}](https://github.com/${{ github.repository }}/commits/${{ github.sha }})</sup> | ||
- name: Uncomment on PR | ||
if: steps.test.outputs.failing_tests == '' && github.event_name == 'pull_request' | ||
uses: thollander/actions-comment-pull-request@v2 | ||
with: | ||
comment_tag: test-failures-${{ github.workflow }} | ||
mode: upsert | ||
create_if_not_exists: false | ||
message: | | ||
✅ test failures on ${{ github.workflow }} have been resolved. | ||
<sup>[#${{ github.sha }}](https://github.com/${{ github.repository }}/commits/${{ github.sha }})</sup> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
name: Node CI | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
paths: | ||
- "app/**" | ||
- "public/**" | ||
- "next.config.js" | ||
- "package.json" | ||
- "postcss.config.js" | ||
- "tailwind.config.ts" | ||
- "tsconfig.json" | ||
- "yarn.lock" | ||
pull_request: | ||
branches: [ "main" ] | ||
paths: | ||
- "app/**" | ||
- "public/**" | ||
- "next.config.js" | ||
- "package.json" | ||
- "postcss.config.js" | ||
- "tailwind.config.ts" | ||
- "tsconfig.json" | ||
- "yarn.lock" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: build-app | ||
runs-on: ubuntu-latest | ||
outputs: | ||
failing_tests: ${{ steps.test.outputs.failing_tests }} | ||
failing_tests_count: ${{ steps.test.outputs.failing_tests_count }} | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20.x' | ||
cache: 'yarn' | ||
|
||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | ||
|
||
- name: Cache node_modules | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: node-cache-${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
node-cache-${{ runner.os }}-yarn- | ||
- name: Install dependencies | ||
run: yarn --frozen-lockfile | ||
|
||
- name: Format app | ||
run: npm run lint | ||
|
||
- name: Build app | ||
run: npm run build --if-present | ||
|
||
- name: Comment on PR | ||
if: steps.test.outputs.failing_tests != '' && github.event_name == 'pull_request' | ||
uses: thollander/actions-comment-pull-request@v2 | ||
with: | ||
comment_tag: test-failures-${{ github.workflow }} | ||
message: | | ||
❌ @${{ github.actor }} ${{ steps.test.outputs.failing_tests_count }} files with test failures on ${{ github.workflow }}: | ||
${{ steps.test.outputs.failing_tests }} | ||
**[View test output](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})** | ||
<sup>[#${{ github.sha }}](https://github.com/${{ github.repository }}/commits/${{ github.sha }})</sup> | ||
- name: Uncomment on PR | ||
if: steps.test.outputs.failing_tests == '' && github.event_name == 'pull_request' | ||
uses: thollander/actions-comment-pull-request@v2 | ||
with: | ||
comment_tag: test-failures-${{ github.workflow }} | ||
mode: upsert | ||
create_if_not_exists: false | ||
message: | | ||
✅ test failures on ${{ github.workflow }} have been resolved. | ||
<sup>[#${{ github.sha }}](https://github.com/${{ github.repository }}/commits/${{ github.sha }})</sup> |
Oops, something went wrong.