-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathproto-generated-code-checks.yaml
More file actions
38 lines (30 loc) · 1.11 KB
/
proto-generated-code-checks.yaml
File metadata and controls
38 lines (30 loc) · 1.11 KB
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
name: "proto-generated-code-checks"
on:
pull_request:
push:
schedule:
# Run daily at 00:15 UTC (the 15 is to avoid periods of high load)
- cron: "15 0 * * *"
workflow_dispatch:
concurrency:
group: "${{github.workflow}}-${{github.ref}}"
# Cancel in-progress jobs for efficiency
cancel-in-progress: true
jobs:
proto-code-committed:
name: "proto-code-committed"
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd" # v6.0.2
with:
submodules: "recursive"
- uses: "./tools/yscope-dev-utils/exports/github/actions/install-python"
- uses: "./tools/yscope-dev-utils/exports/github/actions/install-go-task"
- name: "Install dev dependencies"
run: "./tools/scripts/lib_install/ubuntu/install-dev-huntsman.sh"
- name: "`spider-proto-rust` code generation"
shell: "bash"
run: "task build:spider-proto-rust-codegen"
- name: "Check if the generated proto code is the latest"
shell: "bash"
run: "git diff --exit-code components/spider-proto-rust/src/generated"