File tree Expand file tree Collapse file tree 5 files changed +9
-10
lines changed
test/json-schema-test-suite Expand file tree Collapse file tree 5 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 1212 contents : read
1313 outputs :
1414 PR-BENCH : ${{ steps.benchmark-pr.outputs.BENCH_RESULT }}
15- MASTER -BENCH : ${{ steps.benchmark-master .outputs.BENCH_RESULT }}
15+ MAIN -BENCH : ${{ steps.benchmark-main .outputs.BENCH_RESULT }}
1616 steps :
1717 - uses : actions/checkout@v4
1818 with :
@@ -38,17 +38,17 @@ jobs:
3838 content="${content//$'\r'/'%0D'}"
3939 echo "::set-output name=BENCH_RESULT::$content"
4040
41- # master benchmark
41+ # main benchmark
4242 - uses : actions/checkout@v4
4343 with :
44- ref : ' master '
44+ ref : ' main '
4545
4646 - name : Install
4747 run : |
4848 npm install --ignore-scripts
4949
5050 - name : Run benchmark
51- id : benchmark-master
51+ id : benchmark-main
5252 run : |
5353 npm run --silent bench > ./bench-result
5454 content=$(cat ./bench-result)
7373 ```
7474 ${{ needs.benchmark.outputs.PR-BENCH }}
7575 ```
76- **MASTER **:
76+ **MAIN **:
7777 ```
78- ${{ needs.benchmark.outputs.MASTER -BENCH }}
78+ ${{ needs.benchmark.outputs.MAIN -BENCH }}
7979 ```
8080
8181 - uses : actions-ecosystem/action-remove-labels@v1
Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - main
7- - master
87 - next
98 - ' v*'
109 paths-ignore :
Original file line number Diff line number Diff line change 11# fast-json-stringify
22
3- [ ![ CI] ( https://github.com/fastify/fast-json-stringify/actions/workflows/ci.yml/badge.svg?branch=master )] ( https://github.com/fastify/fast-json-stringify/actions/workflows/ci.yml )
3+ [ ![ CI] ( https://github.com/fastify/fast-json-stringify/actions/workflows/ci.yml/badge.svg?branch=main )] ( https://github.com/fastify/fast-json-stringify/actions/workflows/ci.yml )
44[ ![ NPM version] ( https://img.shields.io/npm/v/fast-json-stringify.svg?style=flat )] ( https://www.npmjs.com/package/fast-json-stringify )
55[ ![ neostandard javascript style] ( https://img.shields.io/badge/code_style-neostandard-brightgreen?style=flat )] ( https://github.com/neostandard/neostandard )
66[ ![ NPM downloads] ( https://img.shields.io/npm/dm/fast-json-stringify.svg?style=flat )] ( https://www.npmjs.com/package/fast-json-stringify )
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ const simpleGit = require('simple-git')
88const git = simpleGit ( process . cwd ( ) )
99
1010const COMMAND = 'npm run bench'
11- const DEFAULT_BRANCH = 'master '
11+ const DEFAULT_BRANCH = 'main '
1212const PERCENT_THRESHOLD = 5
1313const greyColor = '\x1b[30m'
1414const redColor = '\x1b[31m'
Original file line number Diff line number Diff line change @@ -5,6 +5,6 @@ It contains a set of JSON objects that implementors of JSON Schema validation li
55
66# How to add another test case?
77
8- 1 . Navigate to [ JSON-Schema-Test-Suite] ( https://github.com/json-schema-org/JSON-Schema-Test-Suite/tree/master /tests )
8+ 1 . Navigate to [ JSON-Schema-Test-Suite] ( https://github.com/json-schema-org/JSON-Schema-Test-Suite/tree/main /tests )
992 . Choose a draft ` draft4 ` , ` draft6 ` or ` draft7 `
10103 . Copy & paste the ` test-case.json ` to the project and add a test like in the ` draft4.test.js `
You can’t perform that action at this time.
0 commit comments