Skip to content

Commit bbaa93a

Browse files
authored
Cleanup karma and rollup (#52)
* remove unused karma config * remove rollup * update CI action
1 parent 7496fac commit bbaa93a

File tree

5 files changed

+11
-177
lines changed

5 files changed

+11
-177
lines changed

.github/workflows/nodejs.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build
1+
name: Test
22

33
on:
44
pull_request:
@@ -7,36 +7,33 @@ on:
77
- main
88

99
jobs:
10-
build:
11-
name: Build
10+
test:
11+
name: Test
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Get sources
15-
uses: actions/checkout@v1
15+
uses: actions/checkout@v4
1616

1717
- name: Restore npm cache
18-
uses: actions/cache@v2
18+
uses: actions/cache@v4
1919
with:
2020
path: ~/.npm
2121
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
2222
restore-keys: |
2323
${{ runner.os }}-node-
24-
- uses: actions/cache@v2
24+
- uses: actions/cache@v4
2525
with:
2626
path: node_modules
2727
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
2828
restore-keys: |
2929
${{ runner.os }}-node-modules-
30-
- name: Use Node.js 16
31-
uses: actions/setup-node@v3
30+
- name: Use Node.js 22
31+
uses: actions/setup-node@v4
3232
with:
33-
node-version: '16'
33+
node-version: "22"
3434

3535
- name: Install dependencies
36-
run: npm install
37-
38-
- name: Build
39-
run: npm run build --if-present
36+
run: npm ci
4037

4138
- name: Test
4239
run: npm run test

karma.conf.cjs

Lines changed: 0 additions & 19 deletions
This file was deleted.

package-lock.json

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

package.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,9 @@
2626
"url": "git+ssh://[email protected]/chaijs/check-error.git"
2727
},
2828
"scripts": {
29-
"build": "rollup -c rollup.config.js",
3029
"lint": "eslint --ignore-path .gitignore index.js test/",
31-
"prepublish": "npm run build",
3230
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
33-
"pretest": "npm run lint && npm run build",
31+
"pretest": "npm run lint",
3432
"test": "npm run test:node && npm run test:browser",
3533
"test:browser": "web-test-runner",
3634
"test:node": "mocha"
@@ -58,8 +56,6 @@
5856
}
5957
},
6058
"devDependencies": {
61-
"@rollup/plugin-commonjs": "^21.0.0",
62-
"@rollup/plugin-node-resolve": "^13.0.5",
6359
"@web/test-runner": "^0.17.0",
6460
"browserify": "^13.0.0",
6561
"browserify-istanbul": "^1.0.0",
@@ -68,7 +64,6 @@
6864
"eslint-plugin-filenames": "^0.2.0",
6965
"ghooks": "^1.0.1",
7066
"mocha": "^9.1.2",
71-
"rollup": "^2.58.0",
7267
"semantic-release": "^4.3.5",
7368
"simple-assert": "^2.0.0",
7469
"validate-commit-msg": "^2.3.1"

rollup.config.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)