From 761b8fb4733585ab3497ffa5c550f74f8e996c0b Mon Sep 17 00:00:00 2001 From: fuykaa Date: Mon, 2 Mar 2026 02:16:24 +0800 Subject: [PATCH 01/24] feat: add github actions test build --- .github/workflows/main.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..edfa3f4e --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,25 @@ +name: Test, Build, and Deploy | Modul 01 - Lab2.2 Senior Project + +on: + push: + branches: [main] + +jobs: + test-build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [16.x] + + steps: + - uses: actions/checkout@v2 + + - name: Testing Build pre-Deploy + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + cache: "npm" + + - run: npm i + - run: npm run build \ No newline at end of file From b34ac86379856116a12a2d936d2116acf2ee0688 Mon Sep 17 00:00:00 2001 From: fuykaa Date: Mon, 2 Mar 2026 07:26:49 +0800 Subject: [PATCH 02/24] benerin spasi --- .github/workflows/main.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index edfa3f4e..23bbc791 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,7 +14,6 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Testing Build pre-Deploy uses: actions/setup-node@v2 with: From 04f66fc9eae235526e0539d1349f081524f6365c Mon Sep 17 00:00:00 2001 From: fuykaa Date: Mon, 2 Mar 2026 07:29:40 +0800 Subject: [PATCH 03/24] hm --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 23bbc791..a28f4f98 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,11 +14,11 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Testing Build pre-Deploy - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} cache: "npm" - - run: npm i - run: npm run build \ No newline at end of file From d16e561b284e4293386bdcbe4f2c6ffe9b219b46 Mon Sep 17 00:00:00 2001 From: fuykaa Date: Mon, 2 Mar 2026 07:31:02 +0800 Subject: [PATCH 04/24] benerin spasi 2 --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a28f4f98..58a7fc3f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,10 +15,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Testing Build pre-Deploy + - name: Setup Node uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - cache: "npm" - - run: npm i + + - run: npm install - run: npm run build \ No newline at end of file From d6a0f03cdff2c1671139a92203b602b86f9d3f12 Mon Sep 17 00:00:00 2001 From: fuykaa Date: Mon, 2 Mar 2026 07:32:02 +0800 Subject: [PATCH 05/24] hmzzz --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 58a7fc3f..d2437985 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,7 +13,7 @@ jobs: node-version: [16.x] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup Node uses: actions/setup-node@v3 From 588de60e2b80c2a82998557fe5e0ef7643887fe5 Mon Sep 17 00:00:00 2001 From: fuykaa Date: Mon, 2 Mar 2026 08:27:19 +0800 Subject: [PATCH 06/24] bismillah --- .github/workflows/main.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d2437985..43f9a700 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,12 +13,20 @@ jobs: node-version: [16.x] steps: - - uses: actions/checkout@v3 + # Step 1: Checkout repository + - uses: actions/checkout@v2 - - name: Setup Node + # Step 2: Setup Node.js dan cache npm dengan v3 + - name: Setup Node.js uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} + cache: "npm" - - run: npm install - - run: npm run build \ No newline at end of file + # Step 3: Install dependencies + - name: Install dependencies + run: npm install + + # Step 4: Build project + - name: Build project + run: npm run build \ No newline at end of file From e44d6c81abe1c714ad4adaedce09ac3a500f7e57 Mon Sep 17 00:00:00 2001 From: fuykaa Date: Mon, 2 Mar 2026 08:30:07 +0800 Subject: [PATCH 07/24] alahh --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 43f9a700..c23d8e4a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,7 +21,7 @@ jobs: uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - cache: "npm" + #cache: "npm" # Step 3: Install dependencies - name: Install dependencies From 565f5d4c02f6589ff18f37e6afa2b3f663c45c69 Mon Sep 17 00:00:00 2001 From: fuykaa Date: Mon, 2 Mar 2026 08:46:18 +0800 Subject: [PATCH 08/24] update file main.yml ke 1 --- .github/workflows/main.yml | 54 +++++++++++++++++++++++++++++--------- 1 file changed, 41 insertions(+), 13 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c23d8e4a..ecab305c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,26 +7,54 @@ on: jobs: test-build: runs-on: ubuntu-latest - strategy: matrix: node-version: [16.x] - steps: - # Step 1: Checkout repository - uses: actions/checkout@v2 - # Step 2: Setup Node.js dan cache npm dengan v3 - - name: Setup Node.js - uses: actions/setup-node@v3 + - name: Testing Build pre-Deploy + uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - #cache: "npm" + cache: "npm" - # Step 3: Install dependencies - - name: Install dependencies - run: npm install + - run: npm i + - run: npm run build - # Step 4: Build project - - name: Build project - run: npm run build \ No newline at end of file + deploy: + needs: test-build + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [16.x] + steps: + - name: Build app on VM + uses: appleboy/ssh-action@master + with: + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + password: ${{ secrets.PASSWORD }} + port: ${{ secrets.PORT }} + script: | + eval "$(ssh-agent -s)" + ssh-add ~/.ssh/ssh-praktikan23 + echo "Cek folder project" + if [ ! -d "${HOME}/senpro/515523/modul02/senpro-github-action/" ]; then + echo "Repository belum di-clone. Cloning..." + mkdir -p ~/senpro/515523/modul02 + cd ~/senpro/515523/modul02 + git clone https://github.com/fuykaa/senpro-github-action.git + cd ~/senpro/515523/modul02/senpro-github-action + echo "Install Package dan Build Project" + npm install + npm run build + else + echo "Repository sudah ada. Building..." + cd ~/senpro/515523/modul02/senpro-github-action + git restore . + git pull origin main + echo "Install Package dan Build Project" + npm install + npm run build + fi \ No newline at end of file From 747146e5e533b90af65aa32ba4579e8ba11e13fb Mon Sep 17 00:00:00 2001 From: fuykaa Date: Mon, 2 Mar 2026 08:52:25 +0800 Subject: [PATCH 09/24] update file main.yml ke 2 kali --- .github/workflows/main.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ecab305c..1e758d67 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,27 +7,30 @@ on: jobs: test-build: runs-on: ubuntu-latest + strategy: matrix: node-version: [16.x] + steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Testing Build pre-Deploy - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - cache: "npm" - - run: npm i + - run: npm ci - run: npm run build deploy: needs: test-build runs-on: ubuntu-latest + strategy: matrix: node-version: [16.x] + steps: - name: Build app on VM uses: appleboy/ssh-action@master @@ -40,7 +43,7 @@ jobs: eval "$(ssh-agent -s)" ssh-add ~/.ssh/ssh-praktikan23 echo "Cek folder project" - if [ ! -d "${HOME}/senpro/515523/modul02/senpro-github-action/" ]; then + if [ ! -d "$HOME/senpro/515523/modul02/senpro-github-action/" ]; then echo "Repository belum di-clone. Cloning..." mkdir -p ~/senpro/515523/modul02 cd ~/senpro/515523/modul02 From 41acbc8df4ec937913c873da24e5bdcaeec4d047 Mon Sep 17 00:00:00 2001 From: fuykaa Date: Wed, 20 May 2026 08:52:49 +0700 Subject: [PATCH 10/24] yaml w2 --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1e758d67..17a26755 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -41,7 +41,7 @@ jobs: port: ${{ secrets.PORT }} script: | eval "$(ssh-agent -s)" - ssh-add ~/.ssh/ssh-praktikan23 + ssh-add ~/.ssh/ ssh-praktikan4 echo "Cek folder project" if [ ! -d "$HOME/senpro/515523/modul02/senpro-github-action/" ]; then echo "Repository belum di-clone. Cloning..." From 0af197d3550a1646067707c75383c81bca8a7ec5 Mon Sep 17 00:00:00 2001 From: fuykaa Date: Wed, 20 May 2026 09:01:11 +0700 Subject: [PATCH 11/24] update yaml --- .github/workflows/main.yml | 65 +++++++++++++++++++------------------- 1 file changed, 33 insertions(+), 32 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 17a26755..3c106299 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,36 +1,35 @@ name: Test, Build, and Deploy | Modul 01 - Lab2.2 Senior Project - + on: push: branches: [main] - + jobs: test-build: runs-on: ubuntu-latest - + strategy: matrix: node-version: [16.x] - + steps: - - uses: actions/checkout@v3 - + - uses: actions/checkout@v2 - name: Testing Build pre-Deploy - uses: actions/setup-node@v3 + uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - - - run: npm ci + cache: "npm" + - run: npm i - run: npm run build - + deploy: needs: test-build runs-on: ubuntu-latest - + strategy: matrix: node-version: [16.x] - + steps: - name: Build app on VM uses: appleboy/ssh-action@master @@ -41,23 +40,25 @@ jobs: port: ${{ secrets.PORT }} script: | eval "$(ssh-agent -s)" - ssh-add ~/.ssh/ ssh-praktikan4 - echo "Cek folder project" - if [ ! -d "$HOME/senpro/515523/modul02/senpro-github-action/" ]; then - echo "Repository belum di-clone. Cloning..." - mkdir -p ~/senpro/515523/modul02 - cd ~/senpro/515523/modul02 - git clone https://github.com/fuykaa/senpro-github-action.git - cd ~/senpro/515523/modul02/senpro-github-action - echo "Install Package dan Build Project" - npm install - npm run build - else - echo "Repository sudah ada. Building..." - cd ~/senpro/515523/modul02/senpro-github-action - git restore . - git pull origin main - echo "Install Package dan Build Project" - npm install - npm run build - fi \ No newline at end of file + ssh-add ~/.ssh/ssh-praktikan4 + echo "Cek folder project"; + [ ! -d "${HOME}/senpro/515523/modul02/senpro-github-action/" ] && + { + echo "Repository belum di-clone. Cloning..."; + mkdir -p ~/senpro/515523/modul02; + cd ~/senpro/515523/modul02; + git clone <>; + cd ~/senpro/515523/modul02/senpro-github-action; + echo "Install Package dan Build Project"; + npm install; + npm run build; + } || + { + echo "Repository sudah ada. Building..."; + cd ~/senpro/515523/modul02/senpro-github-action; + git restore .; + git pull origin main; + echo "Install Package dan Build Project"; + npm install; + npm run build; + } From 41d2ffbc6d77e25657397710c0e7e8712ab52941 Mon Sep 17 00:00:00 2001 From: fuykaa Date: Wed, 20 May 2026 09:04:04 +0700 Subject: [PATCH 12/24] yaml w2 kisto --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3c106299..9ec544b4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -47,7 +47,7 @@ jobs: echo "Repository belum di-clone. Cloning..."; mkdir -p ~/senpro/515523/modul02; cd ~/senpro/515523/modul02; - git clone <>; + git clone https://github.com/fuykaa/senpro-github-action.git; cd ~/senpro/515523/modul02/senpro-github-action; echo "Install Package dan Build Project"; npm install; From cb60358d4b7184dc0f85d225c3d2e5a2b5d9904e Mon Sep 17 00:00:00 2001 From: fuykaa Date: Wed, 20 May 2026 09:07:13 +0700 Subject: [PATCH 13/24] yaml step 2 --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9ec544b4..6b3f56bf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,5 +1,5 @@ name: Test, Build, and Deploy | Modul 01 - Lab2.2 Senior Project - +#hai on: push: branches: [main] From 1df9c147d51ce679f42771cff7465aca6e13546e Mon Sep 17 00:00:00 2001 From: Kistosi Al Ghifari <132275295+fuykaa@users.noreply.github.com> Date: Wed, 20 May 2026 09:14:13 +0700 Subject: [PATCH 14/24] test --- .github/workflows/main.yml | 41 -------------------------------------- 1 file changed, 41 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6b3f56bf..2e693081 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,44 +21,3 @@ jobs: cache: "npm" - run: npm i - run: npm run build - - deploy: - needs: test-build - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [16.x] - - steps: - - name: Build app on VM - uses: appleboy/ssh-action@master - with: - host: ${{ secrets.HOST }} - username: ${{ secrets.USERNAME }} - password: ${{ secrets.PASSWORD }} - port: ${{ secrets.PORT }} - script: | - eval "$(ssh-agent -s)" - ssh-add ~/.ssh/ssh-praktikan4 - echo "Cek folder project"; - [ ! -d "${HOME}/senpro/515523/modul02/senpro-github-action/" ] && - { - echo "Repository belum di-clone. Cloning..."; - mkdir -p ~/senpro/515523/modul02; - cd ~/senpro/515523/modul02; - git clone https://github.com/fuykaa/senpro-github-action.git; - cd ~/senpro/515523/modul02/senpro-github-action; - echo "Install Package dan Build Project"; - npm install; - npm run build; - } || - { - echo "Repository sudah ada. Building..."; - cd ~/senpro/515523/modul02/senpro-github-action; - git restore .; - git pull origin main; - echo "Install Package dan Build Project"; - npm install; - npm run build; - } From 6fa9fa7854969e64fb58afc9dfb3886fe51c467f Mon Sep 17 00:00:00 2001 From: fuykaa Date: Wed, 20 May 2026 09:18:57 +0700 Subject: [PATCH 15/24] yaml w2 kistosi --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6b3f56bf..c7b189ff 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,9 +13,9 @@ jobs: node-version: [16.x] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 # Ubah ke v4 - name: Testing Build pre-Deploy - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 # Ubah ke v4 with: node-version: ${{ matrix.node-version }} cache: "npm" From 11d04d28cd4e41a2f99aa494dfe46554459e750b Mon Sep 17 00:00:00 2001 From: fuykaa Date: Wed, 20 May 2026 09:50:02 +0700 Subject: [PATCH 16/24] yaml step 2 deploy --- .github/workflows/main.yml | 31 +++++++++++++++++-------------- src/pages/index.js | 2 +- 2 files changed, 18 insertions(+), 15 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c7b189ff..17f16bbf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,35 +1,35 @@ name: Test, Build, and Deploy | Modul 01 - Lab2.2 Senior Project -#hai + on: push: branches: [main] - + jobs: test-build: runs-on: ubuntu-latest - + strategy: matrix: node-version: [16.x] - + steps: - - uses: actions/checkout@v4 # Ubah ke v4 + - uses: actions/checkout@v4 - name: Testing Build pre-Deploy - uses: actions/setup-node@v4 # Ubah ke v4 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: "npm" - run: npm i - run: npm run build - + deploy: needs: test-build runs-on: ubuntu-latest - + strategy: matrix: node-version: [16.x] - + steps: - name: Build app on VM uses: appleboy/ssh-action@master @@ -38,12 +38,16 @@ jobs: username: ${{ secrets.USERNAME }} password: ${{ secrets.PASSWORD }} port: ${{ secrets.PORT }} + command_timeout: 20m # <-- 1. TAMBAHKAN INI: Mengubah timeout bawaan ke 20 menit script: | eval "$(ssh-agent -s)" ssh-add ~/.ssh/ssh-praktikan4 + + # 2. TAMBAHKAN INI: Membatasi konsumsi RAM Node.js maksimal 512MB agar VM Lab tidak crash + export NODE_OPTIONS="--max-old-space-size=512" + echo "Cek folder project"; - [ ! -d "${HOME}/senpro/515523/modul02/senpro-github-action/" ] && - { + if [ ! -d "${HOME}/senpro/515523/modul02/senpro-github-action/" ]; then echo "Repository belum di-clone. Cloning..."; mkdir -p ~/senpro/515523/modul02; cd ~/senpro/515523/modul02; @@ -52,8 +56,7 @@ jobs: echo "Install Package dan Build Project"; npm install; npm run build; - } || - { + else echo "Repository sudah ada. Building..."; cd ~/senpro/515523/modul02/senpro-github-action; git restore .; @@ -61,4 +64,4 @@ jobs: echo "Install Package dan Build Project"; npm install; npm run build; - } + fi \ No newline at end of file diff --git a/src/pages/index.js b/src/pages/index.js index ba9f0517..c5da486a 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -30,7 +30,7 @@ export default function Home() {
- [Nama] | [NIU] + [Kistosi Al Ghifari] | [515523]
From d8da6e54330fe8278928118f559769eb0b0f05a9 Mon Sep 17 00:00:00 2001 From: fuykaa Date: Wed, 20 May 2026 10:07:15 +0700 Subject: [PATCH 17/24] step 4 nambah nama dan niu --- jsconfig.json | 2 +- src/pages/index.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/jsconfig.json b/jsconfig.json index abe04df5..babf8fb3 100644 --- a/jsconfig.json +++ b/jsconfig.json @@ -5,4 +5,4 @@ "@/*": ["./src/*"] } } -} +} \ No newline at end of file diff --git a/src/pages/index.js b/src/pages/index.js index c5da486a..c557a17b 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -37,3 +37,4 @@ export default function Home() { ) } +//src/pages/index.js \ No newline at end of file From 52fe33db9f5f28118b879860cf3fd075d575f76b Mon Sep 17 00:00:00 2001 From: fuykaa Date: Wed, 20 May 2026 10:11:44 +0700 Subject: [PATCH 18/24] case 2 deploy --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 17f16bbf..91aa2be7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -51,7 +51,7 @@ jobs: echo "Repository belum di-clone. Cloning..."; mkdir -p ~/senpro/515523/modul02; cd ~/senpro/515523/modul02; - git clone https://github.com/fuykaa/senpro-github-action.git; + git clone git@github.com:fuykaa/senpro-github-action.git; cd ~/senpro/515523/modul02/senpro-github-action; echo "Install Package dan Build Project"; npm install; From 16e6f058964f87209185f0d45ef53d3971bfab6a Mon Sep 17 00:00:00 2001 From: Kistosi Al Ghifari <132275295+fuykaa@users.noreply.github.com> Date: Wed, 20 May 2026 10:14:13 +0700 Subject: [PATCH 19/24] case 2 deploy 515523 Increase the default command timeout to 20 minutes. --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 91aa2be7..fb474de4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -38,7 +38,7 @@ jobs: username: ${{ secrets.USERNAME }} password: ${{ secrets.PASSWORD }} port: ${{ secrets.PORT }} - command_timeout: 20m # <-- 1. TAMBAHKAN INI: Mengubah timeout bawaan ke 20 menit + script: | eval "$(ssh-agent -s)" ssh-add ~/.ssh/ssh-praktikan4 @@ -64,4 +64,4 @@ jobs: echo "Install Package dan Build Project"; npm install; npm run build; - fi \ No newline at end of file + fi From 1cd8840831123241fa57aaa121e29515419a3399 Mon Sep 17 00:00:00 2001 From: Kistosi Al Ghifari <132275295+fuykaa@users.noreply.github.com> Date: Wed, 20 May 2026 10:53:31 +0700 Subject: [PATCH 20/24] case 2 515523 Added memory limit for Node.js and cleanup step for old cache. --- .github/workflows/main.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fb474de4..736044d0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -43,7 +43,6 @@ jobs: eval "$(ssh-agent -s)" ssh-add ~/.ssh/ssh-praktikan4 - # 2. TAMBAHKAN INI: Membatasi konsumsi RAM Node.js maksimal 512MB agar VM Lab tidak crash export NODE_OPTIONS="--max-old-space-size=512" echo "Cek folder project"; @@ -51,7 +50,7 @@ jobs: echo "Repository belum di-clone. Cloning..."; mkdir -p ~/senpro/515523/modul02; cd ~/senpro/515523/modul02; - git clone git@github.com:fuykaa/senpro-github-action.git; + git clone https://github.com/fuykaa/senpro-github-action.git; cd ~/senpro/515523/modul02/senpro-github-action; echo "Install Package dan Build Project"; npm install; @@ -61,6 +60,11 @@ jobs: cd ~/senpro/515523/modul02/senpro-github-action; git restore .; git pull origin main; + + # 🌟 TAMBAHKAN BARIS INI: Hapus folder rusak sisa crash kemarin + echo "Membersihkan node_modules dan cache lama yang rusak..."; + rm -rf node_modules .next; + echo "Install Package dan Build Project"; npm install; npm run build; From 251d93ccae07743afedb2b90c8cfc2619df9d1ca Mon Sep 17 00:00:00 2001 From: fuykaa Date: Wed, 20 May 2026 10:56:57 +0700 Subject: [PATCH 21/24] Mengubah Nama NIM dan sengaja menggagalkan build Case 3 --- src/pages/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/index.js b/src/pages/index.js index c557a17b..9175f9f1 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -1,7 +1,7 @@ -import Head from 'next/head' -import Image from 'next/image' -import { Inter } from '@next/font/google' -import styles from '@/styles/Home.module.css' +//import Head from 'next/head' +//import Image from 'next/image' +//import { Inter } from '@next/font/google' +//import styles from '@/styles/Home.module.css' const inter = Inter({ subsets: ['latin'] }) From debf9574a9ba94c02c6c11722286d52369a2d341 Mon Sep 17 00:00:00 2001 From: fuykaa Date: Wed, 20 May 2026 10:59:59 +0700 Subject: [PATCH 22/24] Mengubah Nama NIM dan sengaja menggagalkan build Case 3 --- src/pages/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/index.js b/src/pages/index.js index 9175f9f1..ae345800 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -2,7 +2,7 @@ //import Image from 'next/image' //import { Inter } from '@next/font/google' //import styles from '@/styles/Home.module.css' - +// anu const inter = Inter({ subsets: ['latin'] }) export default function Home() { From cee7718aa5477e812f39d99007b06523e1d89bdb Mon Sep 17 00:00:00 2001 From: fuykaa Date: Wed, 20 May 2026 11:01:53 +0700 Subject: [PATCH 23/24] Case 4 selesai setelah fix --- src/pages/index.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/pages/index.js b/src/pages/index.js index ae345800..c5da486a 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -1,8 +1,8 @@ -//import Head from 'next/head' -//import Image from 'next/image' -//import { Inter } from '@next/font/google' -//import styles from '@/styles/Home.module.css' -// anu +import Head from 'next/head' +import Image from 'next/image' +import { Inter } from '@next/font/google' +import styles from '@/styles/Home.module.css' + const inter = Inter({ subsets: ['latin'] }) export default function Home() { @@ -37,4 +37,3 @@ export default function Home() { ) } -//src/pages/index.js \ No newline at end of file From 67d8d714d152cdbdc8d9150ff3dd2572fffbcb58 Mon Sep 17 00:00:00 2001 From: Kistosi Al Ghifari <132275295+fuykaa@users.noreply.github.com> Date: Wed, 20 May 2026 11:03:48 +0700 Subject: [PATCH 24/24] Case 4 selesai setelah fix Removed commented instruction to delete folder after crash. --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 736044d0..918b1f43 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -61,7 +61,7 @@ jobs: git restore .; git pull origin main; - # 🌟 TAMBAHKAN BARIS INI: Hapus folder rusak sisa crash kemarin + echo "Membersihkan node_modules dan cache lama yang rusak..."; rm -rf node_modules .next;