Skip to content

Commit 402c963

Browse files
committed
doc(README): update CI badge URL, remove broken badges
- add node 10
1 parent a983ea2 commit 402c963

File tree

4 files changed

+15
-19
lines changed

4 files changed

+15
-19
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,20 @@ jobs:
4040
github-token: ${{ secrets.github_token }}
4141

4242
ubuntu:
43-
needs: [lint, get-lts]
43+
needs: [get-lts]
4444
runs-on: ubuntu-latest
4545
strategy:
4646
matrix:
47-
node-version: ${{ fromJson(needs.get-lts.outputs.active) }}
47+
node: ${{ fromJson(needs.get-lts.outputs.active) }}
48+
include:
49+
- node: 10
4850
fail-fast: false
4951
steps:
5052
- uses: actions/checkout@v4
5153
- uses: actions/setup-node@v4
52-
name: Node ${{ matrix.node-version }} on ubuntu-latest
54+
name: Node ${{ matrix.node }} on ubuntu-latest
5355
with:
54-
node-version: ${{ matrix.node-version }}
56+
node-version: ${{ matrix.node }}
5557
- run: npm install
5658
- run: npm run test
5759

@@ -60,14 +62,14 @@ jobs:
6062
runs-on: windows-latest
6163
strategy:
6264
matrix:
63-
node-version: ${{ fromJson(needs.get-lts.outputs.active) }}
65+
node: ${{ fromJson(needs.get-lts.outputs.active) }}
6466
fail-fast: false
6567
steps:
6668
- uses: actions/checkout@v4
6769
- uses: actions/setup-node@v4
68-
name: Node.js ${{ matrix.node-version }} on windows-latest
70+
name: Node.js ${{ matrix.node }} on windows-latest
6971
with:
70-
node-version: ${{ matrix.node-version }}
72+
node-version: ${{ matrix.node }}
7173
- run: npm install
7274
- run: npm run test
7375

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* ci: automatically test on ubuntu & windows
66
* ci: automatically test on the LTS versions of node.js
77
* deps: remove mocha & eslint, they get auto-installed by npx when needed
8-
8+
* doc(README): update CI badge URL, remove broken badges
99

1010
## 1.1.3
1111

README.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
11
# sprintf-js
22

3-
[![Build Status][travisci-image]][travisci-url] [![NPM Version][npm-image]][npm-url] [![Dependency Status][dependencies-image]][dependencies-url] [![devDependency Status][dev-dependencies-image]][dev-dependencies-url]
3+
[![Build Status][ci-image]][ci-url] [![NPM Version][npm-image]][npm-url]
44

5-
[travisci-image]: https://travis-ci.org/alexei/sprintf.js.svg?branch=master
6-
[travisci-url]: https://travis-ci.org/alexei/sprintf.js
5+
[ci-image]: https://github.com/alexei/sprintf.js/actions/workflows/ci.yml/badge.svg
6+
[ci-url]: https://github.com/alexei/sprintf.js/actions/workflows/ci.yml
77

88
[npm-image]: https://badge.fury.io/js/sprintf-js.svg
99
[npm-url]: https://badge.fury.io/js/sprintf-js
1010

11-
[dependencies-image]: https://david-dm.org/alexei/sprintf.js.svg
12-
[dependencies-url]: https://david-dm.org/alexei/sprintf.js
13-
14-
[dev-dependencies-image]: https://david-dm.org/alexei/sprintf.js/dev-status.svg
15-
[dev-dependencies-url]: https://david-dm.org/alexei/sprintf.js#info=devDependencies
16-
1711
**sprintf-js** is a complete open source JavaScript `sprintf` implementation for the **browser** and **Node.js**.
1812

1913
**Note: as of v1.1.1 you might need some polyfills for older environments. See [Support](#support) section below.**

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"scripts": {
88
"test": "npx mocha test/*.js",
99
"pretest": "npm run lint",
10-
"lint": "npx eslint@^8 .",
11-
"lint:fix": "npx eslint@^8 --fix ."
10+
"lint": "npx eslint@^7 .",
11+
"lint:fix": "npx eslint@^7 --fix ."
1212
},
1313
"repository": {
1414
"type": "git",

0 commit comments

Comments
 (0)