Skip to content

Move Protovalidate's .proto examples back to its repo (#151) #645

Move Protovalidate's .proto examples back to its repo (#151)

Move Protovalidate's .proto examples back to its repo (#151) #645

Workflow file for this run

name: CI
on: push
permissions: read-all
jobs:
lint-and-breaking-change-detection:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- name: Buf Action
uses: bufbuild/buf-action@8f4a1456a0ab6a1eb80ba68e53832e6fcfacc16c # v1.3.0
with:
input: integrations/github-actions
token: ${{ secrets.BUF_TOKEN }}
ci:
name: CI for all examples
runs-on: ubuntu-latest
env:
BUF_TOKEN: ${{ secrets.BUF_TOKEN }}
steps:
- name: Checkout Code
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
with:
fetch-depth: 1
submodules: false
- name: Install Go
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
with:
go-version-file: protovalidate/quickstart-go/finish/go.mod
- name: Install Java
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
with:
distribution: 'temurin'
java-version: '11'
cache: 'gradle'
- name: Install Buf CLI
run: go install github.com/bufbuild/buf/cmd/[email protected]
- name: Install protoc-gen-go
run: go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
- name: Install golangci-lint
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.5.0
- name: Install Protoc
uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0
- name: Install Python
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
with:
python-version: 3.13
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install ruff pytest
- name: CI
run: make ci