Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example user's tlm_cmd code generation check workflow #126

Merged
merged 3 commits into from
Oct 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/check_code_generation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: check tlm_cmd code generation

on:
push:
branches:
- main
- develop
pull_request:

jobs:
check_code_generate:
strategy:
fail-fast: false
matrix:
user:
- mobc
- subobc

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: run tlm-cmd-code-generator
working-directory: ./tlm-cmd-code-generator
run: |
cp "./settings_${{ matrix.user }}.json" ./settings.json
python GenerateC2ACode.py

- name: check diff
run: |
git add .
if ! git diff --exit-code --cached; then
echo "threre are some diff after code generation"
exit 1
fi
2 changes: 2 additions & 0 deletions tlm-cmd-code-generator/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
settings.json

# OSX
.DS_Store
.AppleDouble
Expand Down
Loading