Skip to content

fix ci + add notice#198

Merged
MoOx merged 2 commits into
mainfrom
master
Jun 4, 2026
Merged

fix ci + add notice#198
MoOx merged 2 commits into
mainfrom
master

Conversation

@MoOx
Copy link
Copy Markdown
Contributor

@MoOx MoOx commented Jun 4, 2026

No description provided.

Copilot AI review requested due to automatic review settings June 4, 2026 09:05
@MoOx MoOx changed the title Master fix ci + add notice Jun 4, 2026
@MoOx MoOx merged commit ae6a6f9 into main Jun 4, 2026
9 checks passed
@MoOx MoOx deleted the master branch June 4, 2026 09:06
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR modernizes the project’s CI/testing setup by moving off Travis/Mocha to GitHub Actions and Node’s built-in test runner, and adds a prominent README notice about the project’s maintenance status.

Changes:

  • Replace Mocha/should-based tests with node:test + node:assert, and switch npm test to node --test.
  • Remove Travis CI config and add a GitHub Actions workflow to run tests on Ubuntu and Windows.
  • Add a README notice recommending migration, plus add .gitattributes (LF normalization) and commit a package-lock.json for npm ci.

Reviewed changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
test/stringify.js Migrates assertions to node:assert/node:test for sourcemap + indent tests.
test/parse.js Migrates parse tests from should to node:assert and node:test.
test/cases.js Removes should dependency and introduces a containDeep helper using node:assert.
Readme.md Updates badges and adds a maintenance-status notice and alternative recommendation.
package.json Removes Mocha/should dev deps and switches test script to node --test.
package-lock.json Adds lockfile needed for npm ci in GitHub Actions.
.travis.yml Removes Travis CI configuration.
.github/workflows/test.yml Adds GitHub Actions matrix CI (Ubuntu/Windows, LTS/latest).
.gitattributes Forces LF checkouts to keep fixtures/tests consistent on Windows.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread test/stringify.js
Comment on lines 100 to 104
var result = stringify(stylesheet, { sourcemap: true });

result.map.sources.should.eql(['/test/source.css']);
assert.deepStrictEqual(result.map.sources, ['/test/source.css']);

path.sep = originalSep;
Comment thread package.json
Comment on lines 16 to 18
"scripts": {
"benchmark": "matcha",
"test": "mocha --require should --reporter spec test/*.js"
"test": "node --test"
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants