From 8e47cfc287bd55d95424f7be99a39c5f7eec7ae1 Mon Sep 17 00:00:00 2001 From: Nicholas Pease Date: Sat, 17 Feb 2024 04:14:39 +0000 Subject: [PATCH 1/5] Testing workflows --- .github/workflows/frontend-tests.yml | 30 ++++++++++++++ frontend-next/.eslintrc.json | 3 ++ frontend-next/.gitignore | 37 ++++++++++++++++++ README.md => frontend-next/README.md | 0 jsconfig.json => frontend-next/jsconfig.json | 0 .../next.config.mjs | 0 .../package-lock.json | 0 package.json => frontend-next/package.json | 0 .../postcss.config.js | 0 {public => frontend-next/public}/next.svg | 0 {public => frontend-next/public}/vercel.svg | 0 {src => frontend-next/src}/app/favicon.ico | Bin {src => frontend-next/src}/app/globals.css | 0 {src => frontend-next/src}/app/layout.js | 0 {src => frontend-next/src}/app/page.js | 0 .../tailwind.config.js | 0 16 files changed, 70 insertions(+) create mode 100644 .github/workflows/frontend-tests.yml create mode 100644 frontend-next/.eslintrc.json create mode 100644 frontend-next/.gitignore rename README.md => frontend-next/README.md (100%) rename jsconfig.json => frontend-next/jsconfig.json (100%) rename next.config.mjs => frontend-next/next.config.mjs (100%) rename package-lock.json => frontend-next/package-lock.json (100%) rename package.json => frontend-next/package.json (100%) rename postcss.config.js => frontend-next/postcss.config.js (100%) rename {public => frontend-next/public}/next.svg (100%) rename {public => frontend-next/public}/vercel.svg (100%) rename {src => frontend-next/src}/app/favicon.ico (100%) rename {src => frontend-next/src}/app/globals.css (100%) rename {src => frontend-next/src}/app/layout.js (100%) rename {src => frontend-next/src}/app/page.js (100%) rename tailwind.config.js => frontend-next/tailwind.config.js (100%) diff --git a/.github/workflows/frontend-tests.yml b/.github/workflows/frontend-tests.yml new file mode 100644 index 0000000..71e4c05 --- /dev/null +++ b/.github/workflows/frontend-tests.yml @@ -0,0 +1,30 @@ +name: Build + +on: + push: + branches: + - "**" + + workflow_dispatch: + +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: Change Directory + run: cd frontend-next + + - name: Install dependencies + run: npm install + + - name: Buide + run: npm 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 100% rename from src/app/page.js rename to frontend-next/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 -- 2.52.0 From 75e3aea4771c533918ac1eaac6e957da7b1c456a Mon Sep 17 00:00:00 2001 From: Nicholas Pease Date: Sat, 17 Feb 2024 04:16:32 +0000 Subject: [PATCH 2/5] Directory Update --- .github/workflows/frontend-tests.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/frontend-tests.yml b/.github/workflows/frontend-tests.yml index 71e4c05..f96d0b6 100644 --- a/.github/workflows/frontend-tests.yml +++ b/.github/workflows/frontend-tests.yml @@ -20,11 +20,8 @@ jobs: with: node-version: 21.6.2 - - name: Change Directory - run: cd frontend-next - - name: Install dependencies - run: npm install + run: npm install frontend-next/ - name: Buide - run: npm run build + run: npm run build frontend-next/ -- 2.52.0 From 7a99930b8a0473c3535b9195192ebf16b1a24ed7 Mon Sep 17 00:00:00 2001 From: Nicholas Pease Date: Sat, 17 Feb 2024 04:20:18 +0000 Subject: [PATCH 3/5] Change to prefix --- .github/workflows/frontend-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/frontend-tests.yml b/.github/workflows/frontend-tests.yml index f96d0b6..5082687 100644 --- a/.github/workflows/frontend-tests.yml +++ b/.github/workflows/frontend-tests.yml @@ -24,4 +24,4 @@ jobs: run: npm install frontend-next/ - name: Buide - run: npm run build frontend-next/ + run: npm --prefix frontend-next/ run build -- 2.52.0 From 43c281e70f2d773794c76a4e478b0249e84ec69b Mon Sep 17 00:00:00 2001 From: Nicholas Pease Date: Sat, 17 Feb 2024 04:25:35 +0000 Subject: [PATCH 4/5] Specific Branches / PR --- .github/workflows/frontend-tests.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/frontend-tests.yml b/.github/workflows/frontend-tests.yml index 5082687..ff805e3 100644 --- a/.github/workflows/frontend-tests.yml +++ b/.github/workflows/frontend-tests.yml @@ -1,11 +1,10 @@ name: Build on: + pull_request: push: branches: - - "**" - - workflow_dispatch: + - "main" jobs: build: -- 2.52.0 From 3e98477ef59a33c7254fdd76f09decf9efa40d8d Mon Sep 17 00:00:00 2001 From: Nicholas Pease Date: Sat, 17 Feb 2024 04:26:36 +0000 Subject: [PATCH 5/5] Testing --- frontend-next/src/app/page.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend-next/src/app/page.js b/frontend-next/src/app/page.js index c9b26e0..027e8fb 100644 --- a/frontend-next/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

-- 2.52.0