From 5d20726dc59a7c4c143af318c7a61a0af5702485 Mon Sep 17 00:00:00 2001 From: Inside4ndroid <65467186+Inside4ndroid@users.noreply.github.com> Date: Sat, 12 Apr 2025 16:22:44 +0100 Subject: [PATCH 1/3] Update main.yml --- .github/workflows/main.yml | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8218882..7160ab8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,13 +23,36 @@ jobs: cache: 'npm' - run: npm ci - + + # Optional: Start your app if needed + # - name: Start API + # run: npm run start & + + # Optional: Wait for it to be ready + # - name: Wait for API to be ready + # run: | + # timeout 60 bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' http://localhost:3000)" != "200" ]]; do sleep 1; done' + - name: Run Tests run: npm run test:ci - + - name: Upload test results if: always() uses: actions/upload-artifact@v3 with: name: jest-test-results-${{ matrix.node-version }} path: test-results/junit.xml + + # Optional: Show test output log (if you use one) + - name: Show test log + if: always() + run: | + cat jest.log || echo "No jest.log found" + + # Optional: Upload log as artifact for debugging + - name: Upload jest log + if: always() + uses: actions/upload-artifact@v3 + with: + name: jest-log-${{ matrix.node-version }} + path: jest.log From 982418e37284103e3a199fe7d0d359d215890fb8 Mon Sep 17 00:00:00 2001 From: Inside4ndroid <65467186+Inside4ndroid@users.noreply.github.com> Date: Sat, 12 Apr 2025 16:24:53 +0100 Subject: [PATCH 2/3] Update main.yml --- .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 7160ab8..c5634e1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -38,7 +38,7 @@ jobs: - name: Upload test results if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v3.1.3 with: name: jest-test-results-${{ matrix.node-version }} path: test-results/junit.xml @@ -52,7 +52,7 @@ jobs: # Optional: Upload log as artifact for debugging - name: Upload jest log if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v3.1.3 with: name: jest-log-${{ matrix.node-version }} path: jest.log From 00a6d143b5023ccb557f85aab63d8ffd98361025 Mon Sep 17 00:00:00 2001 From: Inside4ndroid <65467186+Inside4ndroid@users.noreply.github.com> Date: Sat, 12 Apr 2025 16:26:57 +0100 Subject: [PATCH 3/3] Update main.yml --- .github/workflows/main.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c5634e1..36f1020 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,12 +36,12 @@ jobs: - name: Run Tests run: npm run test:ci - - name: Upload test results - if: always() - uses: actions/upload-artifact@v3.1.3 - with: - name: jest-test-results-${{ matrix.node-version }} - path: test-results/junit.xml + # - name: Upload test results + # if: always() + # uses: actions/upload-artifact@v3.1.3 + # with: + # name: jest-test-results-${{ matrix.node-version }} + # path: test-results/junit.xml # Optional: Show test output log (if you use one) - name: Show test log @@ -50,9 +50,9 @@ jobs: cat jest.log || echo "No jest.log found" # Optional: Upload log as artifact for debugging - - name: Upload jest log - if: always() - uses: actions/upload-artifact@v3.1.3 - with: - name: jest-log-${{ matrix.node-version }} - path: jest.log + # - name: Upload jest log + # if: always() + # uses: actions/upload-artifact@v3.1.3 + # with: + # name: jest-log-${{ matrix.node-version }} + # path: jest.log