Skip to content

Commit

Permalink
Test fail code generation
Browse files Browse the repository at this point in the history
Signed-off-by: Antonio Gisondi <[email protected]>
  • Loading branch information
harlem88 committed Oct 9, 2023
1 parent c5bd4ac commit ebafc61
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-code-generation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ jobs:
# git add ./python
# git diff --staged --quiet || git commit -s -m "[Python]: Add generated code"
run: |
git diff --quiet --no-index -- ./rust-dist/astarteplatform.msghub.rs ./rust/astarte-message-hub-proto/src/astarteplatform.msghub.rs
git --no-pager diff --no-index -- ./rust-dist/astarteplatform.msghub.rs ./rust/astarte-message-hub-proto/src/astarteplatform.msghub.rs
echo "Generation OK"
13 changes: 6 additions & 7 deletions .github/workflows/code-generation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,11 @@ jobs:
rust-code-generation:
needs: [ reuse ]
uses: ./.github/workflows/rust-code-generation.yaml
rust-code-check:
needs: [ rust-code-generation ]
uses: ./.github/workflows/rust-code-check.yaml
commit-codegen:
# if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
needs: [ python-code-generation, rust-code-check ]
check-codegen:
needs: [ python-code-generation, rust-code-generation ]
permissions:
contents: write
uses: ./.github/workflows/commit-code-generation.yaml
uses: ./.github/workflows/check-code-generation.yaml
# rust-code-check:
# needs: [ check-codegen ]
# uses: ./.github/workflows/rust-code-check.yaml
4 changes: 4 additions & 0 deletions .reuse/dep5
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ Source: https://github.com/astarte-platform/astarte-message-hub-proto
Files: python/astarteplatform/msghub/*
Copyright: SECO Mind Srl
License: CC0-1.0

Files: rust/astarte-message-hub-proto/src/astarteplatform.msghub.rs
Copyright: SECO Mind Srl
License: Apache-2.0

0 comments on commit ebafc61

Please sign in to comment.