From 041e76c9067bde1af137da4e42dea5e233f629b8 Mon Sep 17 00:00:00 2001 From: Frederick Pruneau Date: Thu, 5 Feb 2026 10:54:22 -0500 Subject: [PATCH 1/7] adding first workflow --- .gitea/workflows/node-ci.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .gitea/workflows/node-ci.yaml diff --git a/.gitea/workflows/node-ci.yaml b/.gitea/workflows/node-ci.yaml new file mode 100644 index 0000000..070b6e3 --- /dev/null +++ b/.gitea/workflows/node-ci.yaml @@ -0,0 +1,18 @@ +name: Node-CI + + +on: + push: + branches: [main] + pull_request: + branches: [main] + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-24.04 + steps: + - name: Gitea Checkout + uses: gitea.com/actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 \ No newline at end of file From c4dc5656790db851525fbcdb71fc5dd3288869ae Mon Sep 17 00:00:00 2001 From: Frederick Pruneau Date: Thu, 5 Feb 2026 10:57:17 -0500 Subject: [PATCH 2/7] adding README for workflows --- .gitea/workflows/README.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitea/workflows/README.md diff --git a/.gitea/workflows/README.md b/.gitea/workflows/README.md new file mode 100644 index 0000000..adc5379 --- /dev/null +++ b/.gitea/workflows/README.md @@ -0,0 +1 @@ +Workflows to be compliant with CI/CD pipelines \ No newline at end of file From e57d90ab7336510885bf339f236558fb67190406 Mon Sep 17 00:00:00 2001 From: Frederick Pruneau Date: Thu, 5 Feb 2026 10:59:53 -0500 Subject: [PATCH 3/7] fixed issues with workflow not starting --- .gitea/workflows/node-ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/node-ci.yaml b/.gitea/workflows/node-ci.yaml index 070b6e3..e131201 100644 --- a/.gitea/workflows/node-ci.yaml +++ b/.gitea/workflows/node-ci.yaml @@ -15,4 +15,4 @@ jobs: runs-on: ubuntu-24.04 steps: - name: Gitea Checkout - uses: gitea.com/actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 \ No newline at end of file + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 \ No newline at end of file From 314f7d1a8c9cc2ab308243eb3ca0665d850da128 Mon Sep 17 00:00:00 2001 From: Frederick Pruneau Date: Thu, 5 Feb 2026 11:09:39 -0500 Subject: [PATCH 4/7] adding more tests in workflow --- .gitea/workflows/node-ci.yaml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/node-ci.yaml b/.gitea/workflows/node-ci.yaml index e131201..696ae20 100644 --- a/.gitea/workflows/node-ci.yaml +++ b/.gitea/workflows/node-ci.yaml @@ -15,4 +15,19 @@ jobs: runs-on: ubuntu-24.04 steps: - name: Gitea Checkout - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 \ No newline at end of file + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + + - name: Setup Node.js + uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0 + with: + node-version: '22' + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Run linter + run: npm run lint + + - name: Run tests + run: npm test \ No newline at end of file From 5e052b1d6218d05d80c782884f8885b9c35b9ce3 Mon Sep 17 00:00:00 2001 From: Frederick Pruneau Date: Thu, 5 Feb 2026 11:47:05 -0500 Subject: [PATCH 5/7] adding more tests in workflow --- .gitea/workflows/node-ci.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/node-ci.yaml b/.gitea/workflows/node-ci.yaml index 696ae20..5df486f 100644 --- a/.gitea/workflows/node-ci.yaml +++ b/.gitea/workflows/node-ci.yaml @@ -30,4 +30,15 @@ jobs: run: npm run lint - name: Run tests - run: npm test \ No newline at end of file + run: npm test + + alert_on_failure: + needs: test + runs-on: ubuntu-24.04 + #if: ${{ needs.test.result == 'failure' }} + steps: + - name: Notify Google Chat + if: ${{ always() }} # Use always to ensure that the notification is also send on failure of former steps + uses: SimonScholz/google-chat-action@3b3519e5102dba8aa5046fd711c4b553586409bb # v1.1.0 + with: + webhookUrl: '${{ secrets.GOOGLE_CHAT_WEBHOOK }}' \ No newline at end of file From d9783fd835fb9d0a50382e120ea8fd212013989b Mon Sep 17 00:00:00 2001 From: Frederick Pruneau Date: Thu, 5 Feb 2026 13:02:31 -0500 Subject: [PATCH 6/7] adding Google Chat notification changes in workflow --- .gitea/workflows/node-ci.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/node-ci.yaml b/.gitea/workflows/node-ci.yaml index 5df486f..f9a2cba 100644 --- a/.gitea/workflows/node-ci.yaml +++ b/.gitea/workflows/node-ci.yaml @@ -41,4 +41,7 @@ jobs: if: ${{ always() }} # Use always to ensure that the notification is also send on failure of former steps uses: SimonScholz/google-chat-action@3b3519e5102dba8aa5046fd711c4b553586409bb # v1.1.0 with: - webhookUrl: '${{ secrets.GOOGLE_CHAT_WEBHOOK }}' \ No newline at end of file + webhookUrl: '${{ secrets.GOOGLE_CHAT_WEBHOOK }}' + jobStatus: ${{ job.status }} + title: Google Chat GitHub Action + subtitle: ${{ job.status }} \ No newline at end of file From 017f34ade7a10b47b9e3f699eabeeffb7dad92ce Mon Sep 17 00:00:00 2001 From: Frederick Pruneau Date: Thu, 5 Feb 2026 13:21:13 -0500 Subject: [PATCH 7/7] Optimizing Google Chat notification in workflow --- .gitea/workflows/node-ci.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/node-ci.yaml b/.gitea/workflows/node-ci.yaml index f9a2cba..86570f9 100644 --- a/.gitea/workflows/node-ci.yaml +++ b/.gitea/workflows/node-ci.yaml @@ -44,4 +44,6 @@ jobs: webhookUrl: '${{ secrets.GOOGLE_CHAT_WEBHOOK }}' jobStatus: ${{ job.status }} title: Google Chat GitHub Action - subtitle: ${{ job.status }} \ No newline at end of file + subtitle: ${{ job.status }} + createDefaultSection: false + collapsibleDefaultSection: false \ No newline at end of file