Skip to content

Commit

Permalink
Add ci workflow & update react template (#31)
Browse files Browse the repository at this point in the history
* feat: add ci/cd workflow

* fix: update react template

* fix: fix react template

* fix: fix workflow warning

* fix workflow
  • Loading branch information
shogo0421 authored Feb 27, 2025
1 parent 823c5f0 commit 7eaee8d
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 3 deletions.
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

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:eslint
- name: Run build
run: yarn run build
- name: Run test
run: yarn run test
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>
);
);

0 comments on commit 7eaee8d

Please sign in to comment.