mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2026-03-20 15:18:51 +00:00
Rename master branch to main
This commit is contained in:
20
.github/workflows/benchmark.yml
vendored
20
.github/workflows/benchmark.yml
vendored
@@ -2,7 +2,7 @@ name: Performance Regression Test
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [master]
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
benchmark:
|
||||
@@ -14,11 +14,11 @@ jobs:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
path: pr
|
||||
# check out master branch (to compare performance)
|
||||
# check out main branch (to compare performance)
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
ref: master
|
||||
path: master
|
||||
ref: main
|
||||
path: main
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: '15'
|
||||
@@ -29,11 +29,11 @@ jobs:
|
||||
- name: Run pull request memory usage benchmark
|
||||
run: cd pr && npm run --silent benchmark-memory-usage > memory_usage.txt && cat memory_usage.txt
|
||||
|
||||
- name: Run time benchmark on master (baseline)
|
||||
run: cd master && npm install && npm run --silent benchmark-time > benchmarks.txt && cat benchmarks.txt
|
||||
- name: Run time benchmark on main (baseline)
|
||||
run: cd main && npm install && npm run --silent benchmark-time > benchmarks.txt && cat benchmarks.txt
|
||||
|
||||
- name: Run memory usage benchmark on master (baseline)
|
||||
run: cd master && npm run --silent benchmark-memory-usage > memory_usage.txt && cat memory_usage.txt
|
||||
- name: Run memory usage benchmark on main (baseline)
|
||||
run: cd main && npm run --silent benchmark-memory-usage > memory_usage.txt && cat memory_usage.txt
|
||||
|
||||
- name: Compare time benchmark result
|
||||
uses: openpgpjs/github-action-pull-request-benchmark@v1
|
||||
@@ -41,7 +41,7 @@ jobs:
|
||||
tool: 'benchmarkjs'
|
||||
name: 'Time benchmark'
|
||||
pr-benchmark-file-path: pr/benchmarks.txt
|
||||
base-benchmark-file-path: master/benchmarks.txt
|
||||
base-benchmark-file-path: main/benchmarks.txt
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
# trigger alert comment if 1.3 times slower
|
||||
alert-threshold: '130%'
|
||||
@@ -57,7 +57,7 @@ jobs:
|
||||
tool: 'raw'
|
||||
name: 'Memory usage benchmark'
|
||||
pr-benchmark-file-path: pr/memory_usage.txt
|
||||
base-benchmark-file-path: master/memory_usage.txt
|
||||
base-benchmark-file-path: main/memory_usage.txt
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
alert-threshold: '102%'
|
||||
comment-on-alert: false
|
||||
|
||||
4
.github/workflows/browserstack.yml
vendored
4
.github/workflows/browserstack.yml
vendored
@@ -2,9 +2,9 @@ name: Test on Browserstack
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [master]
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
full:
|
||||
|
||||
4
.github/workflows/docs.yml
vendored
4
.github/workflows/docs.yml
vendored
@@ -2,9 +2,9 @@ name: Documentation
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [master]
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
|
||||
4
.github/workflows/lint.yml
vendored
4
.github/workflows/lint.yml
vendored
@@ -2,9 +2,9 @@ name: Lint
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [master]
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
|
||||
4
.github/workflows/node.js.yml
vendored
4
.github/workflows/node.js.yml
vendored
@@ -5,9 +5,9 @@ name: Test on Node.js
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [master]
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
4
.github/workflows/test-type-definitions.yml
vendored
4
.github/workflows/test-type-definitions.yml
vendored
@@ -2,9 +2,9 @@ name: Types
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [master]
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
|
||||
Reference in New Issue
Block a user