-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (39 loc) · 1.15 KB
/
codegen_check.yaml
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
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
# Trigger analysis when pushing in master or pull requests, and when creating
# a pull request.
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
# Declare default permissions as read only.
permissions: read-all
name: Code Generation Check
jobs:
warmup:
runs-on: ubuntu-latest
steps:
- uses: jdx/mise-action@0c39a522dfbced3ed83924152c45804a71ce216f # v2.0.4
with:
experimental: true
check-codegen:
strategy:
matrix:
target: [ mocks, protobuf ]
fail-fast: false # Don't cancel running checks because one fails
runs-on: ubuntu-latest
needs:
- warmup
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- uses: jdx/mise-action@0c39a522dfbced3ed83924152c45804a71ce216f # v2.0.4
with:
experimental: true
- run: mise run clean
- run: mise run generate:${{ matrix.target }} --check