mirror of
https://github.com/prymitive/karma
synced 2026-08-17 11:27:01 +00:00
chore(project): rename master branch to main
This commit is contained in:
committed by
Łukasz Mierzwa
parent
8d3d2c909f
commit
0e3103fd24
@@ -3,7 +3,7 @@ name: Go version
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- main
|
||||
paths:
|
||||
- Dockerfile
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ name: Node version
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- main
|
||||
paths:
|
||||
- Dockerfile
|
||||
|
||||
|
||||
+12
-12
@@ -3,10 +3,10 @@ name: Test
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
- main
|
||||
release:
|
||||
types:
|
||||
- published
|
||||
@@ -34,7 +34,7 @@ jobs:
|
||||
path: ~/go/pkg/mod
|
||||
key: ${{ runner.os }}-${{ env.GITHUB_REF_SLUG }}-go-modules-${{ hashFiles('**/go.sum') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-master-go-modules-
|
||||
${{ runner.os }}-main-go-modules-
|
||||
|
||||
- name: Fetch all Go modules
|
||||
if: steps.cache-go-modules.outputs.cache-hit != 'true'
|
||||
@@ -73,7 +73,7 @@ jobs:
|
||||
path: ~/go/pkg/mod
|
||||
key: ${{ runner.os }}-${{ env.GITHUB_REF_SLUG }}-go-modules-${{ hashFiles('**/go.sum') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-master-go-modules-
|
||||
${{ runner.os }}-main-go-modules-
|
||||
|
||||
- name: Fetch all Go modules
|
||||
if: steps.cache-go-modules.outputs.cache-hit != 'true'
|
||||
@@ -112,7 +112,7 @@ jobs:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-${{ env.GITHUB_REF_SLUG }}-npm-${{ hashFiles('**/package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-master-npm-
|
||||
${{ runner.os }}-main-npm-
|
||||
|
||||
- name: Fetch all NPM dependencies
|
||||
if: steps.cache-npm.outputs.cache-hit != 'true'
|
||||
@@ -150,7 +150,7 @@ jobs:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-${{ env.GITHUB_REF_SLUG }}-npm-${{ hashFiles('**/package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-master-npm-
|
||||
${{ runner.os }}-main-npm-
|
||||
|
||||
- name: Fetch all NPM dependencies
|
||||
if: steps.cache-npm.outputs.cache-hit != 'true'
|
||||
@@ -199,7 +199,7 @@ jobs:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-${{ env.GITHUB_REF_SLUG }}-npm-${{ hashFiles('**/package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-master-npm-
|
||||
${{ runner.os }}-main-npm-
|
||||
|
||||
- name: Fetch all NPM dependencies
|
||||
if: steps.cache-npm.outputs.cache-hit != 'true'
|
||||
@@ -278,7 +278,7 @@ jobs:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-${{ env.GITHUB_REF_SLUG }}-npm-${{ hashFiles('**/package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-master-npm-
|
||||
${{ runner.os }}-main-npm-
|
||||
|
||||
- name: Fetch all NPM dependencies
|
||||
if: steps.cache-npm.outputs.cache-hit != 'true'
|
||||
@@ -390,7 +390,7 @@ jobs:
|
||||
path: ~/go/pkg/mod
|
||||
key: ${{ runner.os }}-${{ env.GITHUB_REF_SLUG }}-go-modules-${{ hashFiles('**/go.sum') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-master-go-modules-
|
||||
${{ runner.os }}-main-go-modules-
|
||||
|
||||
- name: Fetch all Go modules
|
||||
if: steps.cache-go-modules.outputs.cache-hit != 'true'
|
||||
@@ -439,7 +439,7 @@ jobs:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-${{ env.GITHUB_REF_SLUG }}-npm-${{ hashFiles('**/package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-master-npm-
|
||||
${{ runner.os }}-main-npm-
|
||||
|
||||
- name: Fetch all NPM dependencies
|
||||
if: steps.cache-npm.outputs.cache-hit != 'true'
|
||||
@@ -486,7 +486,7 @@ jobs:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-${{ env.GITHUB_REF_SLUG }}-npm-${{ hashFiles('**/package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-master-npm-
|
||||
${{ runner.os }}-main-npm-
|
||||
|
||||
- name: Fetch all NPM dependencies
|
||||
if: steps.cache-npm.outputs.cache-hit != 'true'
|
||||
@@ -531,7 +531,7 @@ jobs:
|
||||
~/.npm
|
||||
key: ${{ runner.os }}-${{ env.GITHUB_REF_SLUG }}-go-cc-${{ hashFiles('**/go.sum') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-master-go-cc-
|
||||
${{ runner.os }}-main-go-cc-
|
||||
|
||||
- name: Cross compile binaries
|
||||
run: make crosscompile -j 2
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ file.
|
||||
## Git tags and branches
|
||||
|
||||
Every release tag name will follow `vX.Y.Z` naming scheme, example: `v0.1.0`.
|
||||
All releases are tagged against the `master` branch.
|
||||
All releases are tagged against the `main` branch.
|
||||
|
||||
## Commit messages
|
||||
|
||||
|
||||
@@ -130,7 +130,7 @@ media queries.
|
||||
|
||||
## Demo
|
||||
|
||||
[Online demo](https://karma-demo.herokuapp.com/) is running latest master branch
|
||||
[Online demo](https://karma-demo.herokuapp.com/) is running latest main branch
|
||||
or PR branch version. It might include features that are experimental and not
|
||||
yet ready to be included.
|
||||
|
||||
@@ -243,7 +243,7 @@ Official docker images are built and hosted on
|
||||
Images are built automatically for:
|
||||
|
||||
- release tags in git - `ghcr.io/prymitive/karma:vX.Y.Z`
|
||||
- master branch commits - `ghcr.io/prymitive/karma:latest`
|
||||
- main branch commits - `ghcr.io/prymitive/karma:latest`
|
||||
|
||||
#### Examples
|
||||
|
||||
@@ -254,11 +254,11 @@ To start a release image run:
|
||||
Latest release details can be found on
|
||||
[GitHub](https://github.com/prymitive/karma/releases).
|
||||
|
||||
To start docker image build from lastet master branch run:
|
||||
To start docker image build from lastet main branch run:
|
||||
|
||||
docker run -e ALERTMANAGER_URI=https://alertmanager.example.com ghcr.io/prymitive/karma:latest
|
||||
|
||||
Note that latest master branch might have bugs or breaking changes. Using
|
||||
Note that latest main branch might have bugs or breaking changes. Using
|
||||
release images is strongly recommended for any production use.
|
||||
|
||||
### Building a Docker image
|
||||
|
||||
+1
-1
@@ -36,7 +36,7 @@ benchmark-go:
|
||||
$(GOBIN)/benchstat: tools/benchstat/go.mod tools/benchstat/go.sum
|
||||
@$(GO) install -modfile=tools/benchstat/go.mod golang.org/x/perf/cmd/benchstat
|
||||
benchmark-compare-go: $(GOBIN)/benchstat
|
||||
@$(GOBIN)/benchstat master.txt new.txt
|
||||
@$(GOBIN)/benchstat main.txt new.txt
|
||||
|
||||
$(GOBIN)/looppointer: tools/looppointer/go.mod tools/looppointer/go.sum
|
||||
$(GO) install -modfile=tools/looppointer/go.mod github.com/kyoh86/looppointer/cmd/looppointer
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
set -o errexit
|
||||
set -o pipefail
|
||||
|
||||
git fetch origin master
|
||||
git fetch origin main
|
||||
git reset --hard FETCH_HEAD
|
||||
|
||||
make benchmark-go | tee master.txt
|
||||
make benchmark-go | tee main.txt
|
||||
|
||||
git reset --hard ${GITHUB_SHA}
|
||||
make benchmark-go | tee new.txt
|
||||
|
||||
@@ -3,15 +3,15 @@
|
||||
set -o errexit
|
||||
set -o pipefail
|
||||
|
||||
git fetch origin master
|
||||
git fetch origin main
|
||||
git reset --hard FETCH_HEAD
|
||||
|
||||
make -C ui build/stats.json
|
||||
mv ui/build/stats.json master.json
|
||||
mv ui/build/stats.json main.json
|
||||
|
||||
make clean
|
||||
git reset --hard ${GITHUB_SHA}
|
||||
make -C ui build/stats.json
|
||||
|
||||
./scripts/cra-bundle-stats-diff.py master.json ui/build/stats.json | tee diff.html
|
||||
./scripts/cra-bundle-stats-diff.py main.json ui/build/stats.json | tee diff.html
|
||||
./scripts/pr-comment.py "Webpack bundle size diff" diff.html html
|
||||
|
||||
Reference in New Issue
Block a user