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 12
12
contents : read
13
13
outputs :
14
14
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 }}
16
16
steps :
17
17
- uses : actions/checkout@v4
18
18
with :
@@ -38,17 +38,17 @@ jobs:
38
38
content="${content//$'\r'/'%0D'}"
39
39
echo "::set-output name=BENCH_RESULT::$content"
40
40
41
- # master benchmark
41
+ # main benchmark
42
42
- uses : actions/checkout@v4
43
43
with :
44
- ref : ' master '
44
+ ref : ' main '
45
45
46
46
- name : Install
47
47
run : |
48
48
npm install --ignore-scripts
49
49
50
50
- name : Run benchmark
51
- id : benchmark-master
51
+ id : benchmark-main
52
52
run : |
53
53
npm run --silent bench > ./bench-result
54
54
content=$(cat ./bench-result)
73
73
```
74
74
${{ needs.benchmark.outputs.PR-BENCH }}
75
75
```
76
- **MASTER **:
76
+ **MAIN **:
77
77
```
78
- ${{ needs.benchmark.outputs.MASTER -BENCH }}
78
+ ${{ needs.benchmark.outputs.MAIN -BENCH }}
79
79
```
80
80
81
81
- uses : actions-ecosystem/action-remove-labels@v1
Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- main
7
- - master
8
7
- next
9
8
- ' v*'
10
9
paths-ignore :
Original file line number Diff line number Diff line change 1
1
# fast-json-stringify
2
2
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 )
4
4
[ ![ NPM version] ( https://img.shields.io/npm/v/fast-json-stringify.svg?style=flat )] ( https://www.npmjs.com/package/fast-json-stringify )
5
5
[ ![ neostandard javascript style] ( https://img.shields.io/badge/code_style-neostandard-brightgreen?style=flat )] ( https://github.com/neostandard/neostandard )
6
6
[ ![ 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')
8
8
const git = simpleGit ( process . cwd ( ) )
9
9
10
10
const COMMAND = 'npm run bench'
11
- const DEFAULT_BRANCH = 'master '
11
+ const DEFAULT_BRANCH = 'main '
12
12
const PERCENT_THRESHOLD = 5
13
13
const greyColor = '\x1b[30m'
14
14
const 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
5
5
6
6
# How to add another test case?
7
7
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 )
9
9
2 . Choose a draft ` draft4 ` , ` draft6 ` or ` draft7 `
10
10
3 . 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