action-runner #3
6
.github/workflows/test.yml
vendored
6
.github/workflows/test.yml
vendored
@@ -33,11 +33,11 @@ jobs:
|
||||
run: |
|
||||
cd apps/cli
|
||||
cargo run -- db:migrate_and_generate --output-path ../../public/database/src/generated/entities
|
||||
- name: Check for uncommitted changes
|
||||
- name: Check for uncommitted changes in /generated/
|
||||
run: |
|
||||
if [[ -n $(git status --porcelain) ]]; then
|
||||
if [[ -n $(git status --porcelain | grep '^ M .*\/generated\/') ]]; then
|
||||
echo "Generated code is not up to date. Please run the code generation locally and commit the changes."
|
||||
git status --porcelain
|
||||
git status --porcelain | grep '^ M .*\/generated\/'
|
||||
exit 1
|
||||
else
|
||||
echo "Generated code is up to date."
|
||||
|
||||
Reference in New Issue
Block a user