From 0f9e892ad035d05d4741f04d3faaec1c64809335 Mon Sep 17 00:00:00 2001 From: Muhammad Abdulghaffar Date: Mon, 8 Dec 2025 08:16:52 +0200 Subject: [PATCH 01/15] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 7c219b456..53a5cfdbe 100644 --- a/README.md +++ b/README.md @@ -22,3 +22,7 @@ npm run dev _This starts the server in non-database mode._ It will serve a simple webpage at `http://localhost:8080`. You do _not_ need to set up a database or any interactivity on the webpage yet. Instructions for that will come later in the course! + + +My name is Muhammad +ALHAMDULLAH <3 From b9d42d8d38f48126ef97895738b5f1f0ccddb63b Mon Sep 17 00:00:00 2001 From: muhammadabdulghaffar0 Date: Mon, 8 Dec 2025 08:31:24 +0200 Subject: [PATCH 02/15] editing --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index 53a5cfdbe..dfce74f57 100644 --- a/README.md +++ b/README.md @@ -24,5 +24,3 @@ _This starts the server in non-database mode._ It will serve a simple webpage at You do _not_ need to set up a database or any interactivity on the webpage yet. Instructions for that will come later in the course! -My name is Muhammad -ALHAMDULLAH <3 From d21475656eb1839512c4591023fa169fd927e8ea Mon Sep 17 00:00:00 2001 From: muhammadabdulghaffar0 Date: Mon, 8 Dec 2025 09:07:07 +0200 Subject: [PATCH 03/15] adding github actions files --- tut.github/vi.yml | 1 + tut.github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 tut.github/vi.yml create mode 100644 tut.github/workflows/ci.yml diff --git a/tut.github/vi.yml b/tut.github/vi.yml new file mode 100644 index 000000000..c87443c43 --- /dev/null +++ b/tut.github/vi.yml @@ -0,0 +1 @@ +name: ci diff --git a/tut.github/workflows/ci.yml b/tut.github/workflows/ci.yml new file mode 100644 index 000000000..96b1d8bdb --- /dev/null +++ b/tut.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: ci + +on: + pull_request: + branches: [main] + +jobs: + tests: + name: Tests + runs_on: unbuntu-latest + + + + steps: + - name: Check out code + uses: actions/checkout@v4 + + + + + - name: Set up node + uses: actions/setup-node@v4 + with: + node version: 18 + + - name: Force Faliure + run: (exit 1) From c83e3944158982c58728ca9d62a09448ecc235e2 Mon Sep 17 00:00:00 2001 From: muhammadabdulghaffar0 Date: Mon, 8 Dec 2025 09:14:25 +0200 Subject: [PATCH 04/15] changing name --- {tut.github => .github}/workflows/ci.yml | 0 tut.github/vi.yml | 1 - 2 files changed, 1 deletion(-) rename {tut.github => .github}/workflows/ci.yml (100%) delete mode 100644 tut.github/vi.yml diff --git a/tut.github/workflows/ci.yml b/.github/workflows/ci.yml similarity index 100% rename from tut.github/workflows/ci.yml rename to .github/workflows/ci.yml diff --git a/tut.github/vi.yml b/tut.github/vi.yml deleted file mode 100644 index c87443c43..000000000 --- a/tut.github/vi.yml +++ /dev/null @@ -1 +0,0 @@ -name: ci From 972084f780cfae5034a2ca3c15f72bdb89323d20 Mon Sep 17 00:00:00 2001 From: muhammadabdulghaffar0 Date: Mon, 8 Dec 2025 09:20:42 +0200 Subject: [PATCH 05/15] Changes for last line --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 96b1d8bdb..56402d1d3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,6 @@ name: ci + on: pull_request: branches: [main] @@ -23,5 +24,5 @@ jobs: with: node version: 18 - - name: Force Faliure - run: (exit 1) + - name: Node version + run: node --version From 2b382e3be176d2dab2020ef9064433a5aa239f56 Mon Sep 17 00:00:00 2001 From: muhammadabdulghaffar0 Date: Mon, 8 Dec 2025 09:25:12 +0200 Subject: [PATCH 06/15] on-run --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 56402d1d3..5d5c36b85 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ on: jobs: tests: name: Tests - runs_on: unbuntu-latest + runs-on: unbuntu-latest From cebf5f6458b28cf4ae275bd282bcf0a6ef96ea90 Mon Sep 17 00:00:00 2001 From: Muhammad Abdulghaffar Date: Mon, 8 Dec 2025 09:27:53 +0200 Subject: [PATCH 07/15] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5d5c36b85..2e8019e9d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,7 +3,7 @@ name: ci on: pull_request: - branches: [main] + branches: [addtests] jobs: tests: From 5f09888a7461ccfe0e991465b97ab98ef68c0467 Mon Sep 17 00:00:00 2001 From: Muhammad Abdulghaffar Date: Mon, 8 Dec 2025 09:30:55 +0200 Subject: [PATCH 08/15] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2e8019e9d..5d5c36b85 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,7 +3,7 @@ name: ci on: pull_request: - branches: [addtests] + branches: [main] jobs: tests: From 76181d55a5c982685fb4f018ae294623ae893fc2 Mon Sep 17 00:00:00 2001 From: muhammadabdulghaffar0 Date: Mon, 8 Dec 2025 10:02:27 +0200 Subject: [PATCH 09/15] syntax error editing --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5d5c36b85..59b6b334f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ on: jobs: tests: name: Tests - runs-on: unbuntu-latest + runs-on: ubuntu-latest @@ -22,7 +22,7 @@ jobs: - name: Set up node uses: actions/setup-node@v4 with: - node version: 18 + node-version: 18 - name: Node version run: node --version From 819a27070bbddd4c32f4f9e8f317881e472c1bac Mon Sep 17 00:00:00 2001 From: muhammadabdulghaffar0 Date: Mon, 8 Dec 2025 10:04:41 +0200 Subject: [PATCH 10/15] editing v2 --- .github/workflows/ci.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 59b6b334f..1b69766cd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,5 @@ name: ci - on: pull_request: branches: [main] @@ -9,20 +8,16 @@ jobs: tests: name: Tests runs-on: ubuntu-latest - - steps: - - name: Check out code + - name: Check out code uses: actions/checkout@v4 - - - - - name: Set up node + - name: Set up Node uses: actions/setup-node@v4 with: node-version: 18 - name: Node version run: node --version + From f7c7b1f2b6e132a52c61f0f19d844de72ed2a11b Mon Sep 17 00:00:00 2001 From: muhammadabdulghaffar0 Date: Mon, 8 Dec 2025 10:35:20 +0200 Subject: [PATCH 11/15] deleting work --- .github/workflows/ci.yml | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 1b69766cd..000000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: ci - -on: - pull_request: - branches: [main] - -jobs: - tests: - name: Tests - runs-on: ubuntu-latest - - steps: - - name: Check out code - uses: actions/checkout@v4 - - - name: Set up Node - uses: actions/setup-node@v4 - with: - node-version: 18 - - - name: Node version - run: node --version - From 98bf4e26b472d283fea95dbb836103966af1a9ea Mon Sep 17 00:00:00 2001 From: Muhammad Abdulghaffar Date: Mon, 8 Dec 2025 10:36:19 +0200 Subject: [PATCH 12/15] Create ci.yml --- .github/workflows/ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..f692a28fc --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,22 @@ +name: ci + +on: + pull_request: + branches: [main] + +jobs: + tests: + name: Tests + runs-on: ubuntu-latest + + steps: + - name: Check out code + uses: actions/checkout@v4 + + - name: Set up Node + uses: actions/setup-node@v4 + with: + node-version: 18 + + - name: Node version + run: node --version From e563b607746ffb7dbfd1e68913c7011974bb3d58 Mon Sep 17 00:00:00 2001 From: Muhammad Abdulghaffar Date: Mon, 8 Dec 2025 10:38:29 +0200 Subject: [PATCH 13/15] Update ci.yml --- .github/workflows/ci.yml | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f692a28fc..c9734e0ce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,22 +1,13 @@ -name: ci - on: - pull_request: - branches: [main] + pull_request_target: jobs: - tests: - name: Tests + check: runs-on: ubuntu-latest - steps: - - name: Check out code - uses: actions/checkout@v4 - - - name: Set up Node - uses: actions/setup-node@v4 + - name: Checkout code + uses: actions/checkout@v2 with: - node-version: 18 - - - name: Node version - run: node --version + ref: ${{ github.event.pull_request.head.sha }} + - name: Run checks + run: npm test From 557eabcfc9ea5604f83ab4190f78556c2e402fdc Mon Sep 17 00:00:00 2001 From: muhammadabdulghaffar0 Date: Mon, 8 Dec 2025 10:45:39 +0200 Subject: [PATCH 14/15] trying --- .github/workflows/.ci.yml.swp | Bin 0 -> 12288 bytes .github/workflows/ci.yml | 34 +++++++++++++++++++++++++++++----- 2 files changed, 29 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/.ci.yml.swp diff --git a/.github/workflows/.ci.yml.swp b/.github/workflows/.ci.yml.swp new file mode 100644 index 0000000000000000000000000000000000000000..6233a25b1f5321875bf4540b1b8d4ad0c3bacd58 GIT binary patch literal 12288 zcmeI2zityj5QjHNbOaE8`XLqw1ZT$qMZpCErHYiGC?qrpMd$N6-sHS{?Cv>A0~G=a zcmxVsXrRb5Ktss`P$3=wT7G+Xb`&R4D2bSpKA(1GJ+u4mHI}bE{cvH4Zr7Uv*I6OH zy_r?lKML_<~1IN%n+!3O8N{9=SSUmp!AO8OTeMX31U>AG>@4##D9Av-%1!AxSWlSI#krYJ(X`M1!l&Oex+?Or7ACmi1HCnbx`yy4}bi*uN zHJL|&IK4q#V?$VVRT78THBpr%DqCiK^3wUSW-GZa!mf(fXfJZGfYNx0I!(uFER<2| z$V}>v)QOUN*0(OxLXlX{@6(S51$COTEu{`yHzCR--=2dmFl8A{N6)L<0#Jy~R^YYlv3w7f!X z8|$P;IG`+dy=qu|*Lj(_R=EnCl8X!;j=Y^~pGRptIHa4WC;fwKPG>W7tRr4HqL!mmwx>F{x Nohl|oxytzk@dsM?A};^{ literal 0 HcmV?d00001 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c9734e0ce..2cbe2b82c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,13 +1,37 @@ +name: CI + +# Trigger workflow on pull requests to main and on push to main on: - pull_request_target: + pull_request: + branches: [main] + push: + branches: [main] jobs: - check: + test: + name: Run Tests runs-on: ubuntu-latest + steps: + # Checkout the code from the PR branch or push branch - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 + + # Setup Node.js environment + - name: Setup Node + uses: actions/setup-node@v4 with: - ref: ${{ github.event.pull_request.head.sha }} - - name: Run checks + node-version: 18 + + # Install dependencies + - name: Install dependencies + run: npm install + + # Run tests + - name: Run tests run: npm test + + # Print Node.js version (optional, for verification) + - name: Node version + run: node --version + From 6a4bac14c01895990fc7ac6f5d7cc52e70321364 Mon Sep 17 00:00:00 2001 From: muhammadabdulghaffar0 Date: Mon, 8 Dec 2025 11:01:53 +0200 Subject: [PATCH 15/15] nothing --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dfce74f57..05808f6d3 100644 --- a/README.md +++ b/README.md @@ -23,4 +23,4 @@ _This starts the server in non-database mode._ It will serve a simple webpage at You do _not_ need to set up a database or any interactivity on the webpage yet. Instructions for that will come later in the course! - +dd