From 038a80b892543e6b5c8db7b404b67825eda070ad Mon Sep 17 00:00:00 2001 From: NucleusHQ Date: Sun, 16 Jun 2024 16:19:46 +0530 Subject: [PATCH 1/3] Deploy yml file written --- .github/workflows/deploy.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 00000000..9b59f613 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,18 @@ + +name: Deploy + +on: + push: + branches: [ "main" ] + +jobs: + deploy: + + runs-on: ubuntu-latest + + + steps: + - uses: actions/checkout@v4 + - run: docker build . -t harishneel/next-js-app + - echo "${{secrets.DOCKERHUB_PASSWORD}}" | docker login -u ${{secrets.DOCKERHUB_USERNAME}} --password-stdin + - run: docker push harishneel/next-js-app:latest \ No newline at end of file From bf05a4cbb125cea24beef0308ad3c00a2ab2e2a8 Mon Sep 17 00:00:00 2001 From: NucleusHQ Date: Sun, 16 Jun 2024 16:25:14 +0530 Subject: [PATCH 2/3] Deploy yml file is added --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9b59f613..35fe7716 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -14,5 +14,5 @@ jobs: steps: - uses: actions/checkout@v4 - run: docker build . -t harishneel/next-js-app - - echo "${{secrets.DOCKERHUB_PASSWORD}}" | docker login -u ${{secrets.DOCKERHUB_USERNAME}} --password-stdin + - run: echo "${{secrets.DOCKERHUB_PASSWORD}}" | docker login -u ${{secrets.DOCKERHUB_USERNAME}} --password-stdin - run: docker push harishneel/next-js-app:latest \ No newline at end of file From 1304ff03bff735500a4248641fcb952d68f716a2 Mon Sep 17 00:00:00 2001 From: pnrajeshkumar26 Date: Fri, 7 Nov 2025 08:25:18 +0530 Subject: [PATCH 3/3] Delinerately failing a testcase --- app/counter.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/counter.test.tsx b/app/counter.test.tsx index 8488296a..2d3b111c 100644 --- a/app/counter.test.tsx +++ b/app/counter.test.tsx @@ -8,5 +8,5 @@ it("App Router: Works with Client Components (React State)", () => { render(); expect(screen.getByRole("heading")).toHaveTextContent("0"); fireEvent.click(screen.getByRole("button")); - expect(screen.getByRole("heading")).toHaveTextContent("1"); + expect(screen.getByRole("heading")).toHaveTextContent("11"); });