Skip to content

Commit 8b90ade

Browse files
authored
feat: use mocha@11 (#2)
BREAKING CHANGE: drop Node.js < 18.19.0 support part of eggjs/egg#3644 eggjs/egg#5257 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced an automated release process on main branch updates. - **Improvements** - Streamlined the CI testing process with enhanced Node.js version support. - Updated project documentation and branding to reflect the fork and new Mocha integration. - Upgraded platform requirements with a new Node.js engine specification and improved testing framework. - **Chores** - Removed the automated npm publishing process. - Refreshed license information to acknowledge current contributors. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent cc03010 commit 8b90ade

File tree

6 files changed

+37
-46
lines changed

6 files changed

+37
-46
lines changed

.github/workflows/nodejs.yml

+13-26
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,17 @@
11
name: Node.js CI
2-
on:
2+
3+
on:
34
push:
4-
branches:
5-
- master
6-
paths-ignore:
7-
- 'docs'
8-
- '**.yml'
9-
- '**.md'
10-
- '.*'
5+
branches: [ master ]
116
pull_request:
12-
paths-ignore:
13-
- 'docs'
14-
- '**.yml'
15-
- '**.md'
16-
- '.*'
7+
branches: [ master ]
8+
179
jobs:
18-
test:
19-
runs-on: ubuntu-latest
20-
strategy:
21-
matrix:
22-
node-version: [12.x, 14.x, 16.x, 18.x]
23-
steps:
24-
- uses: actions/checkout@v2
25-
- name: Use Node.js ${{ matrix.node-version }}
26-
uses: actions/setup-node@v2
27-
with:
28-
node-version: ${{ matrix.node-version }}
29-
- run: npm install
30-
- run: npm test
10+
Job:
11+
name: Node.js
12+
uses: node-modules/github-actions/.github/workflows/node-test.yml@master
13+
with:
14+
os: 'ubuntu-latest'
15+
version: '18.19.0, 18, 20, 22'
16+
secrets:
17+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/npm-publish.yml

-15
This file was deleted.

.github/workflows/release.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
jobs:
8+
release:
9+
name: Node.js
10+
uses: node-modules/github-actions/.github/workflows/node-release.yml@master
11+
secrets:
12+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
13+
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}

LICENSE.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
MIT License
22

33
Copyright (c) 2015-2017 Adam Gruber
4+
Copyright (c) 2023-present node-modules and the contributors.
45

56
Permission is hereby granted, free of charge, to any person obtaining a copy
67
of this software and associated documentation files (the "Software"), to deal

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
# mochawesome
1+
# mochawesome-with-mocha
22

3-
[![npm](https://img.shields.io/npm/v/mochawesome-with-mocha.svg?style=flat-square)](http://www.npmjs.com/package/mochawesome-with-mocha) ![Node.js CI](https://github.com/adamgruber/mochawesome/workflows/Node.js%20CI/badge.svg) [![Gitter](https://img.shields.io/gitter/room/nwjs/nw.js.svg?style=flat-square)](https://gitter.im/mochawesome/general)
3+
[![npm](https://img.shields.io/npm/v/mochawesome-with-mocha.svg?style=flat-square)](http://www.npmjs.com/package/mochawesome-with-mocha)
4+
[![Node.js CI](https://github.com/node-modules/mochawesome/actions/workflows/nodejs.yml/badge.svg?branch=master)](https://github.com/node-modules/mochawesome/actions/workflows/nodejs.yml)
45

56
Mochawesome is a custom reporter for use with the Javascript testing framework, [mocha][mocha]. It runs on Node.js (>=10) and works in conjunction with [mochawesome-report-generator][marge] to generate a standalone HTML/CSS report to help visualize your test runs.
67

8+
> Forked [mochawesome](https://github.com/adamgruber/mochawesome) add mocha to dependencies.
9+
710
## Features
811

912
<img align="right" src="./docs/marge-report-1.0.1.png" alt="Mochawesome Report" width="55%" />
@@ -241,5 +244,4 @@ mochawesome is [MIT licensed][license].
241244
[mocha]: https://mochajs.org/
242245
[marge]: https://github.com/adamgruber/mochawesome-report-generator
243246
[marge-options]: https://github.com/adamgruber/mochawesome-report-generator#options
244-
[changelog]: CHANGELOG.md
245247
[license]: LICENSE.md

package.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"test:mem": "mocha test-functional/mem-test.js --config test-functional/.mocharc.json",
1212
"test:ctx": "mocha test-functional/test-context.js --config test-functional/.mocharc.json",
1313
"tdd": "npm run lint && cross-env NODE_ENV=test nyc mocha --config test/.mocharc.json --watch",
14-
"prepack": "npm run test"
14+
"ci": "npm run test"
1515
},
1616
"author": "Adam Gruber",
1717
"license": "MIT",
@@ -47,6 +47,9 @@
4747
"functions": 100,
4848
"branches": 90
4949
},
50+
"engines": {
51+
"node": ">=18.19.0"
52+
},
5053
"dependencies": {
5154
"chalk": "^4.1.2",
5255
"diff": "^5.0.0",
@@ -55,7 +58,7 @@
5558
"lodash.isfunction": "^3.0.9",
5659
"lodash.isobject": "^3.0.2",
5760
"lodash.isstring": "^4.0.1",
58-
"mocha": "^10.2.0",
61+
"mocha": "^11.1.0",
5962
"mochawesome-report-generator": "^6.2.0",
6063
"strip-ansi": "^6.0.1",
6164
"uuid": "^8.3.2"

0 commit comments

Comments
 (0)