New CI workflow (#292)

* New CI workflow

* fix for incorrect version handling

* add normal CI workflow

* only trigger on pushes to master
This commit is contained in:
Sacha Weatherstone 2023-01-29 19:04:51 +10:00 committed by GitHub
parent c93278c967
commit 629d1b559b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 132 additions and 149 deletions

23
.github/workflows/pull_request.yml vendored Normal file
View file

@ -0,0 +1,23 @@
name: pull-request
on: pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Buf
uses: bufbuild/buf-setup-action@v1
with:
github_token: ${{ github.token }}
- name: Lint
uses: bufbuild/buf-lint-action@v1
- name: Push to schema registry
uses: bufbuild/buf-push-action@v1
with:
buf_token: ${{ secrets.BUF_TOKEN }}
draft: ${{ github.ref_name != 'master'}}