From 2725f0858203998ffd1f721a11d79c21d49ab8ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20=C5=81ebkowski?= Date: Wed, 19 Nov 2025 20:52:27 +0100 Subject: [PATCH 1/3] add tests --- .github/workflows/ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..17a9885 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,15 @@ +name: Run tests + +on: + push: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '20.x' + registry-url: 'https://registry.npmjs.org' + - run: jest From eec3be436449988aa1e5c3caaf81efabe7bb0053 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20=C5=81ebkowski?= Date: Wed, 19 Nov 2025 20:53:26 +0100 Subject: [PATCH 2/3] change command --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 17a9885..9bf5fff 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,4 +12,4 @@ jobs: with: node-version: '20.x' registry-url: 'https://registry.npmjs.org' - - run: jest + - run: npm run test From 65e87903931cc795ac17108c0ea8c3e9f15725b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20=C5=81ebkowski?= Date: Wed, 19 Nov 2025 20:53:55 +0100 Subject: [PATCH 3/3] install packages before test --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9bf5fff..892991c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,4 +12,5 @@ jobs: with: node-version: '20.x' registry-url: 'https://registry.npmjs.org' + - run: npm ci - run: npm run test