Compare commits
2 commits
master
...
tmp/meanin
Author | SHA1 | Date | |
---|---|---|---|
bb0a9325ce | |||
cb1504cef8 |
3 changed files with 22 additions and 36 deletions
21
.forgejo/workflows/buf.yml
Normal file
21
.forgejo/workflows/buf.yml
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
name: Buf check
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
buf:
|
||||||
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image: node:22-bookworm
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: https://github.com/bufbuild/buf-action@v1
|
||||||
|
with:
|
||||||
|
version: 1.46.0
|
||||||
|
pr_comment: false
|
||||||
|
push: false
|
||||||
|
archive: false
|
36
.github/workflows/buf.yml
vendored
36
.github/workflows/buf.yml
vendored
|
@ -1,36 +0,0 @@
|
||||||
name: Buf lint
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
lint:
|
|
||||||
runs-on: ubuntu-20.04
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: wizhi/setup-buf@v1
|
|
||||||
with:
|
|
||||||
version: 0.20.5
|
|
||||||
- run: buf check lint
|
|
||||||
|
|
||||||
breaking:
|
|
||||||
runs-on: ubuntu-20.04
|
|
||||||
steps:
|
|
||||||
- name: Setup buf
|
|
||||||
uses: wizhi/setup-buf@v1
|
|
||||||
with:
|
|
||||||
version: 0.20.5
|
|
||||||
- name: Check out ref code
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
ref: ${{ github.base_ref }}
|
|
||||||
path: baseref
|
|
||||||
- run: cd baseref && buf image build -o image.bin
|
|
||||||
|
|
||||||
- name: Check out code
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
path: prclone
|
|
||||||
- run: cd prclone && buf check breaking --against-input ../baseref/image.bin
|
|
|
@ -34,3 +34,4 @@ describing the feature/topic you are going to implement.
|
||||||
|
|
||||||
This project is licensed under the Apache 2.0 License -
|
This project is licensed under the Apache 2.0 License -
|
||||||
see the [LICENSE](LICENSE) file for details
|
see the [LICENSE](LICENSE) file for details
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue