Skip to content

Commit

Permalink
ci: Simplify git diff checks
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <[email protected]>
  • Loading branch information
provokateurin committed Oct 7, 2024
1 parent e70c0d4 commit 1ab8160
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 21 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@ jobs:
run: ./tool/setup.sh

- name: Check up-to-date pubspec.lock
run: |
if [ -n "$(git status --porcelain)" ]; then
git --no-pager diff
exit 1
fi
run: git diff --no-pager --exit-code
- name: Check formatting
run: melos run format:check
- name: Lint code
Expand Down
20 changes: 4 additions & 16 deletions .github/workflows/generate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,26 +48,17 @@ jobs:
- name: Generate dynamite end to end test
run: |
./tool/generate-dynamite-e2e-test.sh
if [ -n "$(git status --porcelain)" ]; then
git --no-pager diff
exit 1
fi
git diff --no-pager --exit-code
- name: Generate dynamite petstore example
run: |
./tool/generate-dynamite-petstore-example.sh
if [ -n "$(git status --porcelain)" ]; then
git --no-pager diff
exit 1
fi
git diff --no-pager --exit-code
- name: Generate nextcloud
run: |
./tool/generate-nextcloud.sh
if [ -n "$(git status --porcelain)" ]; then
git --no-pager diff
exit 1
fi
git diff --no-pager --exit-code
openapi:
name: OpenAPI
Expand Down Expand Up @@ -95,7 +86,4 @@ jobs:
- name: Generate specs
run: |
./tool/generate-specs.sh
if [ -n "$(git status --porcelain)" ]; then
git --no-pager diff
exit 1
fi
git diff --no-pager --exit-code

0 comments on commit 1ab8160

Please sign in to comment.