Skip to content

Commit ec905fb

Browse files
committed
another attempt at fixing code gen
1 parent 42abaf5 commit ec905fb

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.github/workflows/codegen_check.yaml

-9
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,12 @@ permissions: read-all
1616

1717
name: Code Generation Check
1818
jobs:
19-
warmup:
20-
runs-on: ubuntu-latest
21-
steps:
22-
- uses: jdx/mise-action@0c39a522dfbced3ed83924152c45804a71ce216f # v2.0.4
23-
with:
24-
experimental: true
2519
check-codegen:
2620
strategy:
2721
matrix:
2822
target: [ mocks, protobuf ]
2923
fail-fast: false # Don't cancel running checks because one fails
3024
runs-on: ubuntu-latest
31-
needs:
32-
- warmup
3325
steps:
3426
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
3527
with:
@@ -38,5 +30,4 @@ jobs:
3830
- uses: jdx/mise-action@0c39a522dfbced3ed83924152c45804a71ce216f # v2.0.4
3931
with:
4032
experimental: true
41-
- run: mise run clean
4233
- run: mise run generate:${{ matrix.target }} --check

.mise/tasks/generate/mocks

+5
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ while test "$#" -gt 0; do
2121
esac
2222
done
2323

24+
mkdir -p build/backups
25+
echo "Backing up mocks to build/backups/mocks..."
26+
rm -rf build/backups/mocks
27+
mv internal/mocks build/backups/mocks
28+
2429
mockery
2530
touch build/.mocksentinel
2631

.mise/tasks/generate/protobuf

+4
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ while test "$#" -gt 0; do
2222
done
2323

2424
mkdir -p internal/grpc/checks
25+
mkdir -p build/backups/grpc
26+
echo "Backing up GRPC files to build/backups/grpc/checks"
27+
mv -f internal/grpc/checks build/backups/grpc/checks
28+
rm -rf internal/grpc/checks
2529

2630
protoc \
2731
--proto_path=proto \

0 commit comments

Comments
 (0)