-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update examples to use `v2` configurations throughout. This also updates the Github Actions to follow `v1` instead of managing them explicitly.
- Loading branch information
Showing
45 changed files
with
1,486 additions
and
916 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,26 +8,23 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: bufbuild/[email protected] | ||
with: | ||
github_token: ${{ github.token }} | ||
- uses: bufbuild/[email protected] | ||
- uses: bufbuild/buf-action@v1 | ||
with: | ||
input: 'limit-output-types' | ||
buf_token: ${{ secrets.BUF_TOKEN }} | ||
- uses: bufbuild/buf-push-action@v1.1.1 | ||
token: ${{ secrets.BUF_TOKEN }} | ||
- uses: bufbuild/buf-action@v1 | ||
with: | ||
input: 'linting/bad' | ||
buf_token: ${{ secrets.BUF_TOKEN }} | ||
- uses: bufbuild/buf-push-action@v1.1.1 | ||
token: ${{ secrets.BUF_TOKEN }} | ||
- uses: bufbuild/buf-action@v1 | ||
with: | ||
input: 'linting/good' | ||
buf_token: ${{ secrets.BUF_TOKEN }} | ||
- uses: bufbuild/buf-push-action@v1.1.1 | ||
token: ${{ secrets.BUF_TOKEN }} | ||
- uses: bufbuild/buf-action@v1 | ||
with: | ||
input: 'workspace/observabilitytypes' | ||
buf_token: ${{ secrets.BUF_TOKEN }} | ||
- uses: bufbuild/buf-push-action@v1.1.1 | ||
token: ${{ secrets.BUF_TOKEN }} | ||
- uses: bufbuild/buf-action@v1 | ||
with: | ||
input: 'workspace/observabilityapi' | ||
buf_token: ${{ secrets.BUF_TOKEN }} | ||
token: ${{ secrets.BUF_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,23 +4,10 @@ jobs: | |
lint-and-breaking-change-detection: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Run `git checkout` | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
# Install the `buf` CLI | ||
- name: Setup | ||
uses: bufbuild/[email protected] | ||
with: | ||
github_token: ${{ github.token }} | ||
# Lint the Buf module in the `github-actions` directory | ||
- name: Lint | ||
uses: bufbuild/buf-lint-action@v1 | ||
with: | ||
input: github-actions | ||
# Detect breaking changes for the Buf module in the `github-actions` directory | ||
# against the current `main` branch | ||
- name: Breaking change detection against `main` | ||
uses: bufbuild/buf-breaking-action@v1 | ||
- name: Buf Action | ||
uses: bufbuild/buf-action@v1 | ||
with: | ||
input: github-actions | ||
against: https://github.com/bufbuild/buf-examples.git#branch=main,ref=HEAD~1,subdir=github-actions | ||
token: ${{ secrets.BUF_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
version: v1 | ||
version: v2 | ||
name: buf.build/acme/weather | ||
breaking: | ||
use: | ||
- FILE | ||
lint: | ||
use: | ||
- DEFAULT | ||
except: | ||
- FIELD_NOT_REQUIRED | ||
- PACKAGE_NO_IMPORT_CYCLE | ||
disallow_comment_ignores: true | ||
breaking: | ||
use: | ||
- FILE | ||
except: | ||
- EXTENSION_NO_DELETE | ||
- FIELD_SAME_DEFAULT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
version: v1 | ||
version: v2 | ||
name: buf.build/acme/weather | ||
breaking: | ||
use: | ||
- FILE | ||
lint: | ||
use: | ||
- DEFAULT | ||
except: | ||
- FIELD_NOT_REQUIRED | ||
- PACKAGE_NO_IMPORT_CYCLE | ||
disallow_comment_ignores: true | ||
breaking: | ||
use: | ||
- FILE | ||
except: | ||
- EXTENSION_NO_DELETE | ||
- FIELD_SAME_DEFAULT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
version: v1 | ||
version: v2 | ||
name: buf.build/acme/weather | ||
breaking: | ||
use: | ||
- FILE | ||
lint: | ||
use: | ||
- DEFAULT | ||
except: | ||
- FIELD_NOT_REQUIRED | ||
- PACKAGE_NO_IMPORT_CYCLE | ||
disallow_comment_ignores: true | ||
breaking: | ||
use: | ||
- FILE | ||
except: | ||
- EXTENSION_NO_DELETE | ||
- FIELD_SAME_DEFAULT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
version: v2 | ||
modules: | ||
- path: proto | ||
lint: | ||
use: | ||
- DEFAULT | ||
except: | ||
- FIELD_NOT_REQUIRED | ||
- PACKAGE_NO_IMPORT_CYCLE | ||
disallow_comment_ignores: true | ||
breaking: | ||
use: | ||
- FILE | ||
except: | ||
- EXTENSION_NO_DELETE | ||
- FIELD_SAME_DEFAULT |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
version: v1 | ||
version: v2 | ||
name: buf.build/buf-examples/limit-output-types | ||
breaking: | ||
use: | ||
- FILE | ||
lint: | ||
use: | ||
- DEFAULT | ||
except: | ||
- FIELD_NOT_REQUIRED | ||
- PACKAGE_NO_IMPORT_CYCLE | ||
disallow_comment_ignores: true | ||
breaking: | ||
use: | ||
- FILE | ||
except: | ||
- EXTENSION_NO_DELETE | ||
- FIELD_SAME_DEFAULT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
# Generated by buf. DO NOT EDIT. | ||
version: v1 | ||
version: v2 | ||
deps: | ||
- remote: buf.build | ||
owner: googleapis | ||
repository: googleapis | ||
- name: buf.build/googleapis/googleapis | ||
commit: 783e4b5374fa488ab068d08af9658438 | ||
digest: b5:2d674e2936711677a6c4572193f1cfb204f28f01366d570b617bf308fa59869f64be0407880451df2888cc371c7e1069b813c5450b4d8719d639c4a4f7889efe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
version: v1 | ||
version: v2 | ||
name: buf.build/buf-examples/linting-bad | ||
deps: | ||
- buf.build/googleapis/googleapis:783e4b5374fa488ab068d08af9658438 | ||
breaking: | ||
use: | ||
- FILE | ||
lint: | ||
use: | ||
- DEFAULT | ||
except: | ||
- FIELD_NOT_REQUIRED | ||
- PACKAGE_NO_IMPORT_CYCLE | ||
disallow_comment_ignores: true | ||
breaking: | ||
use: | ||
- FILE | ||
except: | ||
- EXTENSION_NO_DELETE | ||
- FIELD_SAME_DEFAULT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
# Generated by buf. DO NOT EDIT. | ||
version: v1 | ||
version: v2 | ||
deps: | ||
- remote: buf.build | ||
owner: googleapis | ||
repository: googleapis | ||
- name: buf.build/googleapis/googleapis | ||
commit: 783e4b5374fa488ab068d08af9658438 | ||
digest: b5:2d674e2936711677a6c4572193f1cfb204f28f01366d570b617bf308fa59869f64be0407880451df2888cc371c7e1069b813c5450b4d8719d639c4a4f7889efe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
version: v1 | ||
version: v2 | ||
name: buf.build/buf-examples/linting-good | ||
deps: | ||
- buf.build/googleapis/googleapis:783e4b5374fa488ab068d08af9658438 | ||
breaking: | ||
use: | ||
- FILE | ||
lint: | ||
use: | ||
- DEFAULT | ||
except: | ||
- FIELD_NOT_REQUIRED | ||
- PACKAGE_NO_IMPORT_CYCLE | ||
disallow_comment_ignores: true | ||
breaking: | ||
use: | ||
- FILE | ||
except: | ||
- EXTENSION_NO_DELETE | ||
- FIELD_SAME_DEFAULT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
version: v1 | ||
version: v2 | ||
managed: | ||
enabled: true | ||
optimize_for: CODE_SIZE | ||
|
||
# C++ | ||
cc_enable_arenas: true | ||
|
||
# Go | ||
go_package_prefix: | ||
default: github.com/acme/weather/v1 | ||
|
||
# Java | ||
java_multiple_files: false | ||
java_package_prefix: io | ||
java_string_check_utf8: false | ||
override: | ||
- file_option: cc_enable_arenas | ||
value: true | ||
- file_option: java_multiple_files | ||
value: false | ||
- file_option: java_string_check_utf8 | ||
value: false | ||
- file_option: java_package_prefix | ||
value: io | ||
- file_option: optimize_for | ||
value: CODE_SIZE | ||
- file_option: go_package_prefix | ||
value: github.com/acme/weather/v1 | ||
plugins: | ||
- plugin: buf.build/protocolbuffers/cpp | ||
- remote: buf.build/protocolbuffers/cpp | ||
out: gen/proto/cpp | ||
- plugin: buf.build/protocolbuffers/csharp | ||
- remote: buf.build/protocolbuffers/csharp | ||
out: gen/proto/csharp | ||
- plugin: buf.build/protocolbuffers/go | ||
- remote: buf.build/protocolbuffers/go | ||
out: gen/proto/go | ||
- plugin: buf.build/protocolbuffers/java | ||
- remote: buf.build/protocolbuffers/java | ||
out: gen/proto/java | ||
- plugin: buf.build/protocolbuffers/objc | ||
- remote: buf.build/protocolbuffers/objc | ||
out: gen/proto/objc | ||
- plugin: buf.build/protocolbuffers/php | ||
- remote: buf.build/protocolbuffers/php | ||
out: gen/proto/php | ||
- plugin: buf.build/protocolbuffers/ruby | ||
- remote: buf.build/protocolbuffers/ruby | ||
out: gen/proto/ruby |
Oops, something went wrong.