Skip to content

Commit a774862

Browse files
authored
fix: ci not running (#24)
* chore: update Node.js version in GitHub Actions workflow * feat: add license field and update standard ignore patterns in package.json * feat: update Karma configuration to use ChromeHeadlessNoSandbox for improved compatibility
1 parent 6280afd commit a774862

File tree

5 files changed

+22
-12
lines changed

5 files changed

+22
-12
lines changed

.github/workflows/nodejs.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,12 @@ jobs:
77

88
runs-on: ubuntu-latest
99

10-
strategy:
11-
matrix:
12-
node-version: [8.x, 10.x, 12.x]
13-
1410
steps:
1511
- uses: actions/checkout@v1
16-
- name: Use Node.js ${{ matrix.node-version }}
12+
- name: Use Node.js 22
1713
uses: actions/setup-node@v1
1814
with:
19-
node-version: ${{ matrix.node-version }}
15+
node-version: 22
2016
- name: npm install, build, and test
2117
run: |
2218
npm install

karma.conf.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ process.env.CHROME_BIN = require("puppeteer").executablePath();
22

33
module.exports = function (config) {
44
config.set({
5-
browsers: ["ChromeHeadless"],
5+
browsers: ["ChromeHeadlessNoSandbox"],
66

77
frameworks: ["mocha", "chai"],
88

@@ -17,5 +17,11 @@ module.exports = function (config) {
1717
},
1818

1919
listenAddress: "::",
20+
customLaunchers: {
21+
ChromeHeadlessNoSandbox: {
22+
base: "ChromeHeadless",
23+
flags: ["--no-sandbox"],
24+
},
25+
},
2026
});
2127
};

package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@
2828
"bugs": {
2929
"url": "https://github.com/hackmdio/emojify.js/issues"
3030
},
31+
"standard": {
32+
"ignore": [
33+
"dist/",
34+
"tests/**/*.js",
35+
"karma.conf.js"
36+
]
37+
},
3138
"devDependencies": {
3239
"@open-wc/karma-esm": "^4.0.0",
3340
"@rollup/plugin-replace": "^6.0.2",

tests/node.mjs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import jsdom from "jsdom-global";
2-
import { assert } from "chai";
3-
import emojify from "../dist/js/index.min.js";
1+
import jsdom from 'jsdom-global'
2+
import { assert } from 'chai'
3+
import emojify from '../dist/js/index.min.js'
44

5-
jsdom();
5+
jsdom()
66

7-
global.assert = assert;
7+
global.assert = assert
88
global.emojify = emojify

0 commit comments

Comments
 (0)