diff --git a/.github/workflows/code-check.yml b/.github/workflows/code-check.yml new file mode 100644 index 0000000..bd89d6f --- /dev/null +++ b/.github/workflows/code-check.yml @@ -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 diff --git a/package.json b/package.json index da7aa80..38a515b 100644 --- a/package.json +++ b/package.json @@ -63,4 +63,4 @@ "README.md", "LICENSE.txt" ] -} +} \ No newline at end of file diff --git a/templates/react-ts/src/main.tsx b/templates/react-ts/src/main.tsx index 77d159f..e04d8e7 100644 --- a/templates/react-ts/src/main.tsx +++ b/templates/react-ts/src/main.tsx @@ -6,4 +6,4 @@ createRoot(document.getElementById("root")!).render( -); +); \ No newline at end of file diff --git a/templates/react/src/main.jsx b/templates/react/src/main.jsx index 78a3db1..b3b518e 100644 --- a/templates/react/src/main.jsx +++ b/templates/react/src/main.jsx @@ -6,4 +6,4 @@ createRoot(document.getElementById("root")).render( -); +); \ No newline at end of file