Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ci workflow & update react template #31

Merged
merged 6 commits into from
Feb 27, 2025
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/code-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Check code health
Copy link
Contributor Author

@shogo0421 shogo0421 Oct 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ref: workflow in line/liff-inspector

This workflow is not currently running in this repository.
However, it is running in my forked repository, and there are no errors.
https://github.com/shogo0421/create-liff-app/actions/runs/11549522724

github docs (about-workflow-runs-from-public-forks)

workflows on pull requests to public repositories from some outside contributors will not run automatically, and might need to be approved first. By default, all first-time contributors require approval to run workflows.


on: [pull_request]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: yarn install --immutable --immutable-cache --check-cache
- name: Run lint
run: yarn run lint
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
run: yarn run lint
run: yarn run lint:eslint

- name: Run build
run: yarn run build
- name: Run test
run: yarn run test
3 changes: 3 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"singleQuote": true
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@
"README.md",
"LICENSE.txt"
]
}
}
2 changes: 1 addition & 1 deletion templates/react-ts/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ createRoot(document.getElementById("root")!).render(
<StrictMode>
<App />
</StrictMode>
);
);
2 changes: 1 addition & 1 deletion templates/react/src/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ createRoot(document.getElementById("root")).render(
<StrictMode>
<App />
</StrictMode>
);
);
Loading