From 5fcabb627e03a663c62f036c77bda7b6b4606907 Mon Sep 17 00:00:00 2001 From: Igor Teplostanski Date: Sat, 4 Oct 2025 20:57:30 +0000 Subject: [PATCH 1/4] Create test.yml --- .github/workflows/test.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..00361ae --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,20 @@ +# .github/workflows/test.yml +name: Tests + +on: + push: + branches: [test] + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18 + - name: Install dependencies + run: npm ci + - name: Run tests + run: npm run test From e6c2d7b8a87940f804c945cb3f48310e6f5cad6a Mon Sep 17 00:00:00 2001 From: Igor Teplostanski Date: Sat, 4 Oct 2025 21:03:46 +0000 Subject: [PATCH 2/4] docs: add test badge --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 10a147c..444be18 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,8 @@ English • [Russian](./README-RU.md) [NPM Version](https://npmjs.com/package/vite-plugin-readable-classnames) [NPM Downloads](https://npmjs.com/package/vite-plugin-readable-classnames) -[Coverage](https://codecov.io/gh/teplostanski/vite-plugin-readable-classnames) +Tests Status +Coverage

Make your scoped CSS module class names clear and readable — this plugin automatically adds the module filename and other useful info to class names for easier development.

From 20028be62de4a2bfc67d68a999fc3da1da4d6f4a Mon Sep 17 00:00:00 2001 From: Igor Teplostanski Date: Sat, 4 Oct 2025 21:10:43 +0000 Subject: [PATCH 3/4] change branche and rename test.yml to unit-tests.yml --- .github/workflows/{test.yml => unit-tests.yml} | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) rename .github/workflows/{test.yml => unit-tests.yml} (82%) diff --git a/.github/workflows/test.yml b/.github/workflows/unit-tests.yml similarity index 82% rename from .github/workflows/test.yml rename to .github/workflows/unit-tests.yml index 00361ae..d6be6ab 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/unit-tests.yml @@ -1,9 +1,8 @@ -# .github/workflows/test.yml -name: Tests +name: Unit Tests on: push: - branches: [test] + branches: [main] pull_request: jobs: From d394bf93177699fce02a07897a908a98bb1ccc26 Mon Sep 17 00:00:00 2001 From: Igor Teplostanski Date: Sat, 4 Oct 2025 21:12:16 +0000 Subject: [PATCH 4/4] docs: change unit tests badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 444be18..d99bfba 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ English • [Russian](./README-RU.md) [NPM Version](https://npmjs.com/package/vite-plugin-readable-classnames) [NPM Downloads](https://npmjs.com/package/vite-plugin-readable-classnames) -Tests Status +Tests Status Coverage

Make your scoped CSS module class names clear and readable — this plugin automatically adds the module filename and other useful info to class names for easier development.