feat: new evaluation routes #96
Workflow file for this run
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
name: Proto | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "sdk/**" | |
- "rpc/**" | |
pull_request: | |
paths: | |
- "sdk/**" | |
- "rpc/**" | |
jobs: | |
proto-lint: | |
name: "Lint Proto" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: bufbuild/[email protected] | |
with: | |
version: "latest" | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: bufbuild/buf-lint-action@v1 | |
with: | |
input: "rpc/flipt" | |
- uses: bufbuild/buf-breaking-action@v1 | |
with: | |
input: "rpc/flipt" | |
against: "https://github.com/${GITHUB_REPOSITORY}.git#branch=main" | |
proto-check: | |
name: "Proto Check" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: "1.20" | |
check-latest: true | |
cache: true | |
- uses: bufbuild/[email protected] | |
with: | |
version: "latest" | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: magefile/mage-action@v2 | |
with: | |
version: latest | |
args: proto | |
- name: Ensure clean git state. | |
run: git diff --quiet --exit-code sdk/ rpc/ || (echo "Please run 'mage proto' and commit changes." && exit 1) |