diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 6f3bf294..7e5a2de0 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -12,7 +12,7 @@ jobs: contents: read outputs: PR-BENCH: ${{ steps.benchmark-pr.outputs.BENCH_RESULT }} - MASTER-BENCH: ${{ steps.benchmark-master.outputs.BENCH_RESULT }} + MAIN-BENCH: ${{ steps.benchmark-main.outputs.BENCH_RESULT }} steps: - uses: actions/checkout@v4 with: @@ -38,17 +38,17 @@ jobs: content="${content//$'\r'/'%0D'}" echo "::set-output name=BENCH_RESULT::$content" - # master benchmark + # main benchmark - uses: actions/checkout@v4 with: - ref: 'master' + ref: 'main' - name: Install run: | npm install --ignore-scripts - name: Run benchmark - id: benchmark-master + id: benchmark-main run: | npm run --silent bench > ./bench-result content=$(cat ./bench-result) @@ -73,9 +73,9 @@ jobs: ``` ${{ needs.benchmark.outputs.PR-BENCH }} ``` - **MASTER**: + **MAIN**: ``` - ${{ needs.benchmark.outputs.MASTER-BENCH }} + ${{ needs.benchmark.outputs.MAIN-BENCH }} ``` - uses: actions-ecosystem/action-remove-labels@v1 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3aa61300..496e8b90 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,6 @@ on: push: branches: - main - - master - next - 'v*' paths-ignore: diff --git a/README.md b/README.md index 4bc8f0bd..ed6b273b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # fast-json-stringify -[![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) +[![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) [![NPM version](https://img.shields.io/npm/v/fast-json-stringify.svg?style=flat)](https://www.npmjs.com/package/fast-json-stringify) [![neostandard javascript style](https://img.shields.io/badge/code_style-neostandard-brightgreen?style=flat)](https://github.com/neostandard/neostandard) [![NPM downloads](https://img.shields.io/npm/dm/fast-json-stringify.svg?style=flat)](https://www.npmjs.com/package/fast-json-stringify) diff --git a/benchmark/bench-cmp-branch.js b/benchmark/bench-cmp-branch.js index a896e986..0834ad15 100644 --- a/benchmark/bench-cmp-branch.js +++ b/benchmark/bench-cmp-branch.js @@ -8,7 +8,7 @@ const simpleGit = require('simple-git') const git = simpleGit(process.cwd()) const COMMAND = 'npm run bench' -const DEFAULT_BRANCH = 'master' +const DEFAULT_BRANCH = 'main' const PERCENT_THRESHOLD = 5 const greyColor = '\x1b[30m' const redColor = '\x1b[31m' diff --git a/test/json-schema-test-suite/README.md b/test/json-schema-test-suite/README.md index 8e4f954a..de524458 100644 --- a/test/json-schema-test-suite/README.md +++ b/test/json-schema-test-suite/README.md @@ -5,6 +5,6 @@ It contains a set of JSON objects that implementors of JSON Schema validation li # How to add another test case? -1. Navigate to [JSON-Schema-Test-Suite](https://github.com/json-schema-org/JSON-Schema-Test-Suite/tree/master/tests) +1. Navigate to [JSON-Schema-Test-Suite](https://github.com/json-schema-org/JSON-Schema-Test-Suite/tree/main/tests) 2. Choose a draft `draft4`, `draft6` or `draft7` 3. Copy & paste the `test-case.json` to the project and add a test like in the `draft4.test.js` \ No newline at end of file