From 875c71cbc2b4e44712e7f34aac6a0e4bfce6c799 Mon Sep 17 00:00:00 2001 From: Vikas Kumar rana <163565721+vikasthakur897@users.noreply.github.com> Date: Thu, 6 Nov 2025 22:23:37 +0530 Subject: [PATCH 1/2] Delete .github/workflows directory --- .github/workflows/deploy.yml | 18 ----------- .github/workflows/integration.yml | 51 ------------------------------- 2 files changed, 69 deletions(-) delete mode 100644 .github/workflows/deploy.yml delete mode 100644 .github/workflows/integration.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index 35fe7716..00000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,18 +0,0 @@ - -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 - - 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 diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml deleted file mode 100644 index 8a2fa081..00000000 --- a/.github/workflows/integration.yml +++ /dev/null @@ -1,51 +0,0 @@ - -name: Integration - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -jobs: - build: - - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [18.x, 20.x, 22.x] - - steps: - - uses: actions/checkout@v4 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - - name: "Installing Dependencies" - run: npm i - - - name: "Build command" - run: npm run build - - unit-tests: - - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [18.x, 20.x, 22.x] - - steps: - - uses: actions/checkout@v4 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - - name: "Installing Dependencies" - run: npm i - - - name: "Running test cases" - run: npm run test \ No newline at end of file From 75e5132758ac5178e6acc8253bcfb46c24b19db1 Mon Sep 17 00:00:00 2001 From: VikasThakur Date: Thu, 6 Nov 2025 22:51:25 +0530 Subject: [PATCH 2/2] create a integation github action --- .github/workflows/integration.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/integration.yml diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml new file mode 100644 index 00000000..c597baa6 --- /dev/null +++ b/.github/workflows/integration.yml @@ -0,0 +1,30 @@ +# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs + +name: Node.js CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [18.x, 20.x, 22.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm install + - run: npm run build