diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 35fe7716..a89f8f97 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,6 +5,7 @@ on: push: branches: [ "main" ] + jobs: deploy: @@ -13,6 +14,9 @@ jobs: 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 + - name: "create a docker image" + run: docker build -t githubactions12/next-js-app:v1 . + - run: echo "${{ secrets.DOCKERHUB_PASSWORD }}" | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin + - name: "push the image" + run: docker push githubactions12/next-js-app:v1 + diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 8a2fa081..3ef13f60 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -14,38 +14,38 @@ jobs: strategy: matrix: - node-version: [18.x, 20.x, 22.x] + 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@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: 'npm' - - name: "Installing Dependencies" - run: npm i - - - name: "Build command" + - name: " installing dependecies" + run: npm i --force + - name: "build command" run: npm run build - unit-tests: + unite-test: 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@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: 'npm' - - name: "Installing Dependencies" - run: npm i - - - name: "Running test cases" + - name: " installing dependecies" + run: npm i --force + - name: "Runing test cases" run: npm run test \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 0a8df2ff..4501f46c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "with-jest-app", + "name": "next-js-app", "lockfileVersion": 3, "requires": true, "packages": {