From 2b70f32050d070a3e5911934cc4e66b4b9a1ba39 Mon Sep 17 00:00:00 2001 From: Jamius Siam Date: Fri, 12 Jun 2026 14:28:08 +0600 Subject: [PATCH 1/8] Added CI status badge to README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index df449ca..43c11dc 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![POST/APSIS Sibly Page](https://img.shields.io/badge/made_by-POST%2FAPSIS-%23000000)](https://postapsis.com/sibyl) [![sibyl License Page](https://img.shields.io/badge/license-Apache_2.0-brightgreen)](https://raw.githubusercontent.com/postapsis/sibyl/refs/heads/main/LICENSE) +[![sibyl License Page](https://github.com/postapsis/sibyl/actions/workflows/ci.yaml/badge.svg)](https://github.com/postapsis/sibyl/actions/workflows/ci.yaml)
--- From 971293cb0217b62d46cb8afbec27486ef732d99f Mon Sep 17 00:00:00 2001 From: Jamius Siam Date: Fri, 12 Jun 2026 14:33:00 +0600 Subject: [PATCH 2/8] Updated CI badge label in README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 43c11dc..796e01d 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![POST/APSIS Sibly Page](https://img.shields.io/badge/made_by-POST%2FAPSIS-%23000000)](https://postapsis.com/sibyl) [![sibyl License Page](https://img.shields.io/badge/license-Apache_2.0-brightgreen)](https://raw.githubusercontent.com/postapsis/sibyl/refs/heads/main/LICENSE) -[![sibyl License Page](https://github.com/postapsis/sibyl/actions/workflows/ci.yaml/badge.svg)](https://github.com/postapsis/sibyl/actions/workflows/ci.yaml) +[![sibyl CI Status](https://github.com/postapsis/sibyl/actions/workflows/ci.yaml/badge.svg)](https://github.com/postapsis/sibyl/actions/workflows/ci.yaml)
--- From 2cb48c75dcb3c8073ddafa0adb81e0f0f19b9b16 Mon Sep 17 00:00:00 2001 From: Jamius Siam Date: Fri, 12 Jun 2026 14:34:13 +0600 Subject: [PATCH 3/8] Scoped CI workflow to trigger only on `main` branch pushes and pull requests --- .github/workflows/ci.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 244cf12..add664e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -2,7 +2,10 @@ # Lints and tests sibyl every time a commit is pushed to the remote repository. name: CI -on: [push, pull_request] +on: + push: + branches: [main] + pull_request: jobs: ci: name: CI From 26a26439a6fda913478139b1e931936cf099b86d Mon Sep 17 00:00:00 2001 From: Jamius Siam Date: Fri, 12 Jun 2026 15:13:55 +0600 Subject: [PATCH 4/8] Added test coverage and Codecov integration to CI workflow --- .github/workflows/ci.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index add664e..4e7e6df 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -24,5 +24,9 @@ jobs: run: pnpm install - name: Lint run: pnpm lint - - name: Test - run: pnpm test + - name: Test with Coverage + run: pnpm test:coverage + - name: Upload coverage + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} From 9f43f03eb1a119c0ff24ea60fc1954a8aeab46ff Mon Sep 17 00:00:00 2001 From: Jamius Siam Date: Fri, 12 Jun 2026 15:17:19 +0600 Subject: [PATCH 5/8] Updated Codecov action to v5 and added slug configuration Added `lcov` reporter to test coverage configuration --- .github/workflows/ci.yaml | 5 +++-- vitest.config.ts | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4e7e6df..1a333b1 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -26,7 +26,8 @@ jobs: run: pnpm lint - name: Test with Coverage run: pnpm test:coverage - - name: Upload coverage - uses: codecov/codecov-action@v4 + - name: Upload coverage results to Codecov + uses: codecov/codecov-action@v5 with: token: ${{ secrets.CODECOV_TOKEN }} + slug: postapsis/sibyl diff --git a/vitest.config.ts b/vitest.config.ts index 78a2eac..2ea817a 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -12,7 +12,7 @@ export default defineConfig({ provider: "v8", include: ["src/**/*.ts"], exclude: ["src/@types/**/*.ts", "src/exit.ts"], - reporter: ["text", "html"], + reporter: ["text", "html", "lcov"], }, }, }); From 1a6b70db9531fa24378d376cc4f22b4caec9a04a Mon Sep 17 00:00:00 2001 From: Jamius Siam Date: Fri, 12 Jun 2026 15:22:32 +0600 Subject: [PATCH 6/8] Added Codecov badge to README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 796e01d..1986f6e 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ [![POST/APSIS Sibly Page](https://img.shields.io/badge/made_by-POST%2FAPSIS-%23000000)](https://postapsis.com/sibyl) [![sibyl License Page](https://img.shields.io/badge/license-Apache_2.0-brightgreen)](https://raw.githubusercontent.com/postapsis/sibyl/refs/heads/main/LICENSE) [![sibyl CI Status](https://github.com/postapsis/sibyl/actions/workflows/ci.yaml/badge.svg)](https://github.com/postapsis/sibyl/actions/workflows/ci.yaml) +[![codecov](https://codecov.io/gh/postapsis/sibyl/branch/main/graph/badge.svg)](https://codecov.io/gh/postapsis/sibyl)
--- From 2d5d56ebb196cb43e1ddd6035ff360e75d195e83 Mon Sep 17 00:00:00 2001 From: Jamius Siam Date: Fri, 12 Jun 2026 15:28:23 +0600 Subject: [PATCH 7/8] Pinned Codecov action to specific commit SHA in CI workflow --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1a333b1..97570fe 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -27,7 +27,7 @@ jobs: - name: Test with Coverage run: pnpm test:coverage - name: Upload coverage results to Codecov - uses: codecov/codecov-action@v5 + uses: codecov/codecov-action@04b047e8bb82a0c002c8312c1c880fbc6a999d45 with: token: ${{ secrets.CODECOV_TOKEN }} slug: postapsis/sibyl From 794e3837b44083de3e16663bf12b3b0e1de67e00 Mon Sep 17 00:00:00 2001 From: Jamius Siam Date: Fri, 12 Jun 2026 15:30:48 +0600 Subject: [PATCH 8/8] Updated CI workflow triggers to include all pull requests --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 97570fe..290b9ff 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,5 +1,5 @@ # .github/workflows/ci.yaml -# Lints and tests sibyl every time a commit is pushed to the remote repository. +# Lints and tests sibyl on pushes to main and on all pull requests. name: CI on: