-
Notifications
You must be signed in to change notification settings - Fork 1.7k
46 lines (37 loc) · 1.18 KB
/
validate-generated-files.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Validate Generated Files
on:
pull_request:
paths:
- 'backend/api/**/*.proto'
- '.github/workflows/validate-generated-files.yml'
- 'backend/api/**/go_http_client/**'
- 'backend/api/**/go_client/**'
- 'backend/api/**/python_http_client/**'
- 'backend/api/**/swagger/**'
jobs:
validate-generated-files:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install Dependencies
run: |
sudo apt-get update && sudo apt-get install -y protobuf-compiler jq default-jdk
python3 -m pip install setuptools wheel
- name: Generate API proto files
working-directory: ./api
run: make clean all
- name: Generate kfp-kubernetes proto files from source
working-directory: ./kubernetes_platform
run: make clean all
- name: Check for Changes
run: make check-diff