diff --git a/.github/workflows/frontend-tests.yml b/.github/workflows/frontend-tests.yml new file mode 100644 index 0000000..ff805e3 --- /dev/null +++ b/.github/workflows/frontend-tests.yml @@ -0,0 +1,26 @@ +name: Build + +on: + pull_request: + push: + branches: + - "main" + +jobs: + build: + runs-on: ubuntu-latest + + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + + - name: Setup Node + uses: actions/setup-node@v2 + with: + node-version: 21.6.2 + + - name: Install dependencies + run: npm install frontend-next/ + + - name: Buide + run: npm --prefix frontend-next/ run build diff --git a/frontend-next/.eslintrc.json b/frontend-next/.eslintrc.json new file mode 100644 index 0000000..bffb357 --- /dev/null +++ b/frontend-next/.eslintrc.json @@ -0,0 +1,3 @@ +{ + "extends": "next/core-web-vitals" +} diff --git a/frontend-next/.gitignore b/frontend-next/.gitignore new file mode 100644 index 0000000..ea3d442 --- /dev/null +++ b/frontend-next/.gitignore @@ -0,0 +1,37 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js +.yarn/install-state.gz + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# local env files +.env*.local + +# vercel +.vercel + +# typescript +*.tsbuildinfo +next-env.d.ts +frontend-next/node_modules \ No newline at end of file diff --git a/README.md b/frontend-next/README.md similarity index 100% rename from README.md rename to frontend-next/README.md diff --git a/jsconfig.json b/frontend-next/jsconfig.json similarity index 100% rename from jsconfig.json rename to frontend-next/jsconfig.json diff --git a/next.config.mjs b/frontend-next/next.config.mjs similarity index 100% rename from next.config.mjs rename to frontend-next/next.config.mjs diff --git a/package-lock.json b/frontend-next/package-lock.json similarity index 100% rename from package-lock.json rename to frontend-next/package-lock.json diff --git a/package.json b/frontend-next/package.json similarity index 100% rename from package.json rename to frontend-next/package.json diff --git a/postcss.config.js b/frontend-next/postcss.config.js similarity index 100% rename from postcss.config.js rename to frontend-next/postcss.config.js diff --git a/public/next.svg b/frontend-next/public/next.svg similarity index 100% rename from public/next.svg rename to frontend-next/public/next.svg diff --git a/public/vercel.svg b/frontend-next/public/vercel.svg similarity index 100% rename from public/vercel.svg rename to frontend-next/public/vercel.svg diff --git a/src/app/favicon.ico b/frontend-next/src/app/favicon.ico similarity index 100% rename from src/app/favicon.ico rename to frontend-next/src/app/favicon.ico diff --git a/src/app/globals.css b/frontend-next/src/app/globals.css similarity index 100% rename from src/app/globals.css rename to frontend-next/src/app/globals.css diff --git a/src/app/layout.js b/frontend-next/src/app/layout.js similarity index 100% rename from src/app/layout.js rename to frontend-next/src/app/layout.js diff --git a/src/app/page.js b/frontend-next/src/app/page.js similarity index 99% rename from src/app/page.js rename to frontend-next/src/app/page.js index c9b26e0..027e8fb 100644 --- a/src/app/page.js +++ b/frontend-next/src/app/page.js @@ -5,7 +5,7 @@ export default function Home() {

- Get started by editing  + TESTING CHANGES Get started by editing  src/app/page.js

diff --git a/tailwind.config.js b/frontend-next/tailwind.config.js similarity index 100% rename from tailwind.config.js rename to frontend-next/tailwind.config.js