Skip to content

Commit

Permalink
workflows: bring buf.yml into modern days
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Khimov <[email protected]>
  • Loading branch information
roman-khimov committed Dec 18, 2024
1 parent f6bafc2 commit efed121
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/buf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,30 @@ on:

jobs:
lint:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: wizhi/setup-buf@v1
with:
version: 1.47.2
- run: buf check lint

breaking:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Setup buf
uses: wizhi/setup-buf@v1
with:
version: 1.47.2
- name: Check out ref code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: ${{ github.base_ref }}
path: baseref
- run: cd baseref && buf image build -o image.bin

- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: prclone
- run: cd prclone && buf check breaking --against-input ../baseref/image.bin
- run: cd prclone && buf check breaking --against ../baseref/image.bin

0 comments on commit efed121

Please sign in to comment.