Skip to content

Commit db4f256

Browse files
authored
chore: doc and ci updates (#31)
* chore(package): sort scripts alphabetically ascending * ci: ignore documentation updates * style(ci): add whitespace to improve readability * docs(readme): add badges * ci: add automerge job
1 parent 29fb755 commit db4f256

File tree

3 files changed

+29
-6
lines changed

3 files changed

+29
-6
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
1-
name: CI workflow
2-
on: [push, pull_request]
1+
name: CI
2+
3+
on:
4+
push:
5+
paths-ignore:
6+
- 'docs/**'
7+
- '*.md'
8+
pull_request:
9+
paths-ignore:
10+
- 'docs/**'
11+
- '*.md'
12+
313
jobs:
14+
415
browsers:
516
runs-on: ubuntu-latest
617
steps:
@@ -10,6 +21,7 @@ jobs:
1021
run: npm install
1122
- name: Test
1223
run: npm run test-in-browsers
24+
1325
test:
1426
runs-on: ubuntu-latest
1527
strategy:
@@ -25,6 +37,7 @@ jobs:
2537
run: npm install --ignore-scripts
2638
- name: Test
2739
run: npm run test
40+
2841
test-legacy:
2942
runs-on: ubuntu-latest
3043
strategy:
@@ -40,3 +53,11 @@ jobs:
4053
run: npm install --ignore-scripts
4154
- name: Test
4255
run: npm run test-legacy
56+
57+
automerge:
58+
needs: [browsers, test, test-legacy]
59+
runs-on: ubuntu-latest
60+
steps:
61+
- uses: fastify/github-action-merge-dependabot@v2.0.0
62+
with:
63+
github-token: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# secure-json-parse
22

3-
![Ci Workflow](https://github.com/fastify/secure-json-parse/workflows/CI%20workflow/badge.svg)
4-
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/)
3+
![CI](https://github.com/fastify/secure-json-parse/workflows/CI/badge.svg)
4+
[![NPM version](https://img.shields.io/npm/v/secure-json-parse.svg?style=flat)](https://www.npmjs.com/package/secure-json-parse)
5+
[![Known Vulnerabilities](https://snyk.io/test/github/fastify/secure-json-parse/badge.svg)](https://snyk.io/test/github/fastify/secure-json-parse)
6+
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://standardjs.com/)
57

68
`JSON.parse()` drop-in replacement with prototype poisoning protection.
79

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
"types": "index.d.ts",
77
"scripts": {
88
"benchmark": "cd benchmarks && npm install && npm run all",
9-
"test-legacy": "nyc tape test.js",
109
"test": "standard && tsd && nyc tape test.js",
11-
"test-in-browsers": "airtap test.js"
10+
"test-in-browsers": "airtap test.js",
11+
"test-legacy": "nyc tape test.js"
1212
},
1313
"repository": {
1414
"type": "git",

0 commit comments

Comments
 (0)