From 8103adf592294be923a07c589ce5fe2184af1f0b Mon Sep 17 00:00:00 2001 From: shan1919 <186241534+sangshanrupesh@users.noreply.github.com> Date: Tue, 22 Apr 2025 03:17:47 -0400 Subject: [PATCH] Add test script to package.json --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/semver/semver/tree/docs/README?shareId=XXXX-XXXX-XXXX-XXXX). --- .github/workflows/checks.yml | 5 +++-- package.json | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index e1946cf..5ae98f0 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -1,4 +1,4 @@ -name: Check chagnes +name: Check changes on: [pull_request] @@ -11,4 +11,5 @@ jobs: with: node-version: "12.x" - run: npm ci - - run: npm run lint \ No newline at end of file + - run: npm run lint + - run: npm test diff --git a/package.json b/package.json index e9ee3c1..3d359e1 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,8 @@ "description": "Semantic Versioning Specification", "main": "semver.md", "scripts": { - "lint": "remark -qf semver.md", - "test": "echo \"Error: no test specified\" && exit 1" + "lint": "remark -qf .", + "test": "remark -qf semver.md" }, "repository": { "type": "git",