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

Finished the Task #15

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
fcde2ff
feat(package_folder-structure): installed dependencies and created fo…
elyasmotazedy Dec 21, 2022
0beacbe
Merge pull request #1 from elyasmotazedy/develop
elyasmotazedy Dec 22, 2022
c9caec0
feat(create_form): create form using react-hook-form and MUI
elyasmotazedy Dec 22, 2022
a3466da
feat(UI_fix): changed UI and fix components structure
elyasmotazedy Dec 23, 2022
847953e
feat(context): added form context
elyasmotazedy Dec 23, 2022
2b8602e
feat(context): fixed form context and seprate forms secions
elyasmotazedy Dec 23, 2022
d2652ac
feat(create_form): create form using react-hook-form and MUI
elyasmotazedy Dec 22, 2022
d1fe70e
feat(UI_fix): changed UI and fix components structure
elyasmotazedy Dec 23, 2022
b27c076
feat(context): added form context
elyasmotazedy Dec 23, 2022
459e0ff
feat(context): fixed form context and seprate forms secions
elyasmotazedy Dec 23, 2022
01127bb
Merge remote-tracking branch 'origin/feature/context' into feature/co…
elyasmotazedy Dec 23, 2022
5f9cc25
Merge pull request #2 from elyasmotazedy/feature/context
elyasmotazedy Dec 23, 2022
4d00a6f
feat(Cleanup): added proptypes , fixed loading button
elyasmotazedy Dec 23, 2022
b03b27d
Merge pull request #3 from elyasmotazedy/feature/Cleanup
elyasmotazedy Dec 23, 2022
a4ab702
Create nextjs.yml
elyasmotazedy Dec 23, 2022
82edaea
fix(master): fixed the name of file
elyasmotazedy Dec 23, 2022
bdb3ac6
Merge remote-tracking branch 'origin/master'
elyasmotazedy Dec 23, 2022
cc160ac
Rename stepOne.js to StepOne.js
elyasmotazedy Dec 23, 2022
2c3f2be
Rename stepTwo.js to StepTwo.js
elyasmotazedy Dec 23, 2022
8538904
fix(master): fixed validation form
elyasmotazedy Dec 23, 2022
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
94 changes: 94 additions & 0 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# Sample workflow for building and deploying a Next.js site to GitHub Pages
#
# To get started with Next.js see: https://nextjs.org/docs/getting-started
#
name: Deploy Next.js site to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Detect package manager
id: detect-package-manager
run: |
if [ -f "${{ github.workspace }}/yarn.lock" ]; then
echo "manager=yarn" >> $GITHUB_OUTPUT
echo "command=install" >> $GITHUB_OUTPUT
echo "runner=yarn" >> $GITHUB_OUTPUT
exit 0
elif [ -f "${{ github.workspace }}/package.json" ]; then
echo "manager=npm" >> $GITHUB_OUTPUT
echo "command=ci" >> $GITHUB_OUTPUT
echo "runner=npx --no-install" >> $GITHUB_OUTPUT
exit 0
else
echo "Unable to determine packager manager"
exit 1
fi
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "16"
cache: ${{ steps.detect-package-manager.outputs.manager }}
- name: Setup Pages
uses: actions/configure-pages@v2
with:
# Automatically inject basePath in your Next.js configuration file and disable
# server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized).
#
# You may remove this line if you want to manage the configuration yourself.
static_site_generator: next
- name: Restore cache
uses: actions/cache@v3
with:
path: |
.next/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-
- name: Install dependencies
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
- name: Build with Next.js
run: ${{ steps.detect-package-manager.outputs.runner }} next build
- name: Static HTML export with Next.js
run: ${{ steps.detect-package-manager.outputs.runner }} next export
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./out

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
33 changes: 32 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,32 @@
node_modules
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env*.local

# vercel
.vercel
10 changes: 10 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"~/*": ["src/*"]
}
},
"include": ["src/**/*"],
"exclude": ["node_modules"]
}
Loading