Skip to content
This repository has been archived by the owner on Aug 25, 2024. It is now read-only.

Commit

Permalink
Merge pull request #146 from A7med3bdulBaset/14
Browse files Browse the repository at this point in the history
Update to next@14
  • Loading branch information
AhmedBaset authored Dec 19, 2023
2 parents 84a2f6d + e62bbd7 commit 4a9104a
Show file tree
Hide file tree
Showing 10 changed files with 651 additions and 427 deletions.
24 changes: 24 additions & 0 deletions .github/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: "Setup and install"
description: "Common setup steps for Actions"

runs:
using: composite
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: true

- shell: bash
run: pnpm install
77 changes: 50 additions & 27 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,54 @@
name: CI-check
name: CI

on:
push:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
pull_request:
branches: ["*"]
push:
branches: ["develop"]
merge_group:

jobs:
ci-check:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]

steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: CI-check
run: pnpm run ci-check
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: setup
uses: ./.github/setup

- name: Lint
run: pnpm next lint

format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: setup
uses: ./.github/setup

- name: Format
run: pnpm format:check

typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: setup
uses: ./.github/setup

- name: Typecheck
run: pnpm type:check

comment-if-failed:
if: ${{ always() }}
needs: [lint, format, typecheck]
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: juliusmarminge/gh-failed-action-commenter@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
FIXES: '{ "format": "format", "lint": "lint:fix" }'
5 changes: 3 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
serverActions: true,
typedRoutes: true,
// ppr: true,
},
};

module.exports = nextConfig;

/**
* To make your app PWA:
* 1. Run `pnpm add @imbios/next-pwa`
* 1. Run `pnpm add @ducanhgh/next-pwa`
* 2. Uncomment the code below
* 3. create public/manifest.json
*/

// eslint-disable-next-line @typescript-eslint/no-var-requires
Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"dev": "next dev --turbo",
"build": "next build",
"start": "next start",
"lint": "next lint",
Expand All @@ -22,28 +22,28 @@
"clsx": "^2.0.0",
"eslint-plugin-prettier": "^5.0.1",
"lucide-react": "^0.298.0",
"next": "^13.5.6",
"next": "^14.0.4",
"next-themes": "^0.2.1",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@ianvs/prettier-plugin-sort-imports": "^4.1.1",
"@t3-oss/env-nextjs": "^0.7.1",
"@types/node": "20.9.4",
"@types/react": "18.2.38",
"@types/node": "20.10.5",
"@types/react": "18.2.45",
"@types/react-dom": "18.2.18",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"@typescript-eslint/eslint-plugin": "^6.15.0",
"@typescript-eslint/parser": "^6.15.0",
"autoprefixer": "10.4.16",
"eslint": "8.56.0",
"eslint-config-next": "13.5.6",
"eslint-config-next": "14.0.4",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-tailwindcss": "^3.13.0",
"postcss": "8.4.32",
"prettier": "^3.1.0",
"prettier-plugin-tailwindcss": "^0.5.7",
"prettier": "^3.1.1",
"prettier-plugin-tailwindcss": "^0.5.9",
"shadcn-ui": "^0.4.1",
"tailwind-merge": "^2.1.0",
"tailwindcss": "3.3.7",
Expand Down
Loading

0 comments on commit 4a9104a

Please sign in to comment.