Skip to content

Commit

Permalink
chore(ci): confirm that all code changes have been committed
Browse files Browse the repository at this point in the history
  • Loading branch information
ctreatma committed Sep 6, 2024
1 parent bfd23a1 commit 5820187
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/test-codegen.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@

name: Generate and lint code

on:
push:
pull_request:

jobs:
test:
strategy:
matrix:
go-version: [1.19.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install pyaml for patching script
working-directory: ${{ env.PACKAGE_DIR }}
run: |
python -m pip install pyaml
- name: Checkout code
uses: actions/checkout@v4
- name: Verify Patches
run: make patch-all
- name: Generate
run: |
make generate-all
# Expect all changes to be accounted for
! git status --porcelain | grep .
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ CODE_BASE_DIR=services
onboard-service:
script/onboard_service.sh

patch-all:
for makefile in $(shell set -x; ls -1 Makefile.* | sort -n); do \
make -f $$makefile patch;\
done

generate-all:
for makefile in $(shell set -x; ls -1 Makefile.* | sort -n); do \
make -f $$makefile generate;\
Expand Down

0 comments on commit 5820187

Please sign in to comment.