From 86bc4ad87a071036fbf32a7ccaf1f02938ecd587 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Fern=C3=A1ndez=20Castillo?= <100673872+JaviFdez7@users.noreply.github.com> Date: Thu, 16 Oct 2025 17:59:19 +0200 Subject: [PATCH 1/2] refactor: comment out e2e test jobs in nodejs.yml --- .github/workflows/nodejs.yml | 98 ++++++++++++++++++------------------ 1 file changed, 49 insertions(+), 49 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index e581f81..3ecf72a 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -43,55 +43,55 @@ jobs: # github-token: ${{ secrets.GITHUB_TOKEN }} # env: # CI: true - e2eTest: - name: (develop) E2E - Checkout infrastructure, install mocha and run tests (docker-compose up, mocha tests and docker-compose down) - needs: buildTest - runs-on: ubuntu-latest - strategy: - matrix: - node-version: [14.x] - steps: - - uses: actions/checkout@v2 - with: - repository: governify/bluejay-infrastructure - ref: refs/heads/develop - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - name: Install dependencies - run: npm ci - - name: Add host.docker.internal association to 172.17.0.1 - run: sudo echo "172.17.0.1 host.docker.internal" | sudo tee -a /etc/hosts - - name: Run tests - run: npm run test - env: - CI: true - e2eMain: - name: (main) E2E - Checkout infrastructure, install mocha and run tests (docker-compose up, mocha tests and docker-compose down) - if: ${{ github.ref == 'refs/heads/main' }} - needs: test - runs-on: ubuntu-latest - strategy: - matrix: - node-version: [14.x] - steps: - - uses: actions/checkout@v2 - with: - repository: governify/bluejay-infrastructure - ref: refs/heads/develop - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - name: Install dependencies - run: npm ci - - name: Add host.docker.internal association to 172.17.0.1 - run: sudo echo "172.17.0.1 host.docker.internal" | sudo tee -a /etc/hosts - - name: Run tests - run: npm run test - env: - CI: true +# e2eTest: +# name: (develop) E2E - Checkout infrastructure, install mocha and run tests (docker-compose up, mocha tests and docker-compose down) +# needs: buildTest +# runs-on: ubuntu-latest +# strategy: +# matrix: +# node-version: [14.x] +# steps: +# - uses: actions/checkout@v2 +# with: +# repository: governify/bluejay-infrastructure +# ref: refs/heads/develop +# - name: Use Node.js ${{ matrix.node-version }} +# uses: actions/setup-node@v1 +# with: +# node-version: ${{ matrix.node-version }} +# - name: Install dependencies +# run: npm ci +# - name: Add host.docker.internal association to 172.17.0.1 +# run: sudo echo "172.17.0.1 host.docker.internal" | sudo tee -a /etc/hosts +# - name: Run tests +# run: npm run test +# env: +# CI: true +# e2eMain: +# name: (main) E2E - Checkout infrastructure, install mocha and run tests (docker-compose up, mocha tests and docker-compose down) +# if: ${{ github.ref == 'refs/heads/main' }} +# needs: test +# runs-on: ubuntu-latest +# strategy: +# matrix: +# node-version: [14.x] +# steps: +# - uses: actions/checkout@v2 +# with: +# repository: governify/bluejay-infrastructure +# ref: refs/heads/develop +# - name: Use Node.js ${{ matrix.node-version }} +# uses: actions/setup-node@v1 +# with: +# node-version: ${{ matrix.node-version }} +# - name: Install dependencies +# run: npm ci +# - name: Add host.docker.internal association to 172.17.0.1 +# run: sudo echo "172.17.0.1 host.docker.internal" | sudo tee -a /etc/hosts +# - name: Run tests +# run: npm run test +# env: +# CI: true buildTest: name: Build and push to dockerhub using develop tag if: ${{ github.ref == 'refs/heads/develop' && github.event_name == 'push' }} From c5bc184dcc3679e6b721d6dc746a8198d761c45e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Fern=C3=A1ndez=20Castillo?= <100673872+JaviFdez7@users.noreply.github.com> Date: Thu, 16 Oct 2025 17:59:51 +0200 Subject: [PATCH 2/2] fix: update job dependency from e2eMain to test in nodejs.yml --- .github/workflows/nodejs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 3ecf72a..da3084b 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -118,7 +118,7 @@ jobs: buildProdAndRelease: name: Release, build and push to dockerhub using tag version if: ${{ github.ref == 'refs/heads/main' && github.event_name == 'push'}} - needs: e2eMain + needs: test runs-on: ubuntu-latest steps: - uses: actions/checkout@v2