feat: add initial commit for Python evaluation client using Rust core #305
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 Protos" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: bufbuild/[email protected] | |
with: | |
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: "Check Generated Code" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: "${{ vars.GO_VERSION }}" | |
check-latest: true | |
cache: true | |
- uses: bufbuild/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: magefile/mage-action@v3 | |
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) |