From 485b46a4cb60975f6f7e6d0e561d2ded965eb280 Mon Sep 17 00:00:00 2001 From: aek676 Date: Fri, 20 Mar 2026 01:26:28 +0100 Subject: [PATCH 1/5] chore(ci): clean up build workflow formatting Refactored the GitHub Actions build workflow for improved readability and consistency. Removed unnecessary comments, standardized branch array formatting, and fixed whitespace issues. No functional changes. --- .github/workflows/build.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3327cd4..ee3e8f1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,15 +2,13 @@ name: CI -# Controls when the workflow will run on: # Triggers the workflow on push or pull request events but only for the main branch push: - branches: [ master ] + branches: [master] pull_request: - branches: [ master ] + branches: [master] - # Allows you to run this workflow manually from the Actions tab workflow_dispatch: # A workflow run is made up of one or more jobs that can run sequentially or in parallel @@ -34,8 +32,9 @@ jobs: run: npm run test-jenkins # Upload test results - - uses: actions/upload-artifact@v2 - if: success() || failure() # run this step even if previous step failed + - uses: actions/upload-artifact@v2 + if: success() || failure() # run this step even if previous step failed with: name: test-results - path: ./coverage/test.results.xml \ No newline at end of file + path: ./coverage/test.results.xml + From e247993e29d1f93143bae36009768f25c401bca7 Mon Sep 17 00:00:00 2001 From: aek676 Date: Fri, 20 Mar 2026 01:27:41 +0100 Subject: [PATCH 2/5] fix(ci): update workflow to use main branch Changed the GitHub Actions workflow triggers from 'master' to 'main' branch for both push and pull request events. This ensures CI runs on the correct default branch as per repository conventions. --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ee3e8f1..882534b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,9 +5,9 @@ name: CI on: # Triggers the workflow on push or pull request events but only for the main branch push: - branches: [master] + branches: [main] pull_request: - branches: [master] + branches: [main] workflow_dispatch: From ae18e96e73c6572b6f0ed1110cc764e9b3f21f38 Mon Sep 17 00:00:00 2001 From: aek676 Date: Fri, 20 Mar 2026 01:43:27 +0100 Subject: [PATCH 3/5] fix(ci): upgrade upload-artifact action to v4 Updated GitHub Actions workflow to use actions/upload-artifact@v4 for uploading test results. This ensures compatibility with the latest features and improvements of the action. --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 882534b..7d9cf51 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,7 +32,7 @@ jobs: run: npm run test-jenkins # Upload test results - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 if: success() || failure() # run this step even if previous step failed with: name: test-results From 5a5e10bc4b6a6008db00d3e93879b38f33e73297 Mon Sep 17 00:00:00 2001 From: aek676 Date: Fri, 20 Mar 2026 12:10:07 +0100 Subject: [PATCH 4/5] fix(ci): update test and artifact steps in build workflow Switch test step to use jest-github-action with coverage command. Fix typo in artifact upload step and update path to upload full coverage directory. --- .github/workflows/build.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7d9cf51..3af8e3e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,12 +29,16 @@ jobs: # Runs a set of commands using the runners shell - name: Test - run: npm run test-jenkins + uses: mattallty/jest-github-action@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + test-command: 'npm run coverage-jenkins' # Upload test results - uses: actions/upload-artifact@v4 - if: success() || failure() # run this step even if previous step failed + if: sucess() || failure() with: name: test-results - path: ./coverage/test.results.xml - + path: | + ./coverage/ From 24b1b51408ce6583feb3fc756cbcc04f3057aec0 Mon Sep 17 00:00:00 2001 From: aek676 Date: Fri, 20 Mar 2026 12:14:01 +0100 Subject: [PATCH 5/5] chore(ci): remove commented trigger from build workflow Removed an unnecessary commented line describing workflow triggers in the GitHub Actions build.yml. This cleans up the workflow file and improves readability. --- .github/workflows/build.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3af8e3e..4ecd575 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,7 +3,6 @@ name: CI on: - # Triggers the workflow on push or pull request events but only for the main branch push: branches: [main] pull_request: