prettify #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: MATLAB Code Quality | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| name: MATLAB Lint | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up MATLAB | |
| uses: matlab-actions/setup-matlab@v2 | |
| - name: Run MATLAB Code Analyzer | |
| uses: matlab-actions/run-command@v2 | |
| with: | |
| command: addpath('.github/scripts'); lint | |
| - name: Upload lint log | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: matlab-lint-log | |
| path: .github/scripts/lint.log | |
| if-no-files-found: ignore | |
| format: | |
| runs-on: ubuntu-latest | |
| name: MATLAB Format Check | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check MATLAB files exist | |
| run: | | |
| echo "📝 MATLAB Formatting Check" | |
| echo "==========================" | |
| echo "Found MATLAB files:" | |
| find src tests -name "*.m" | head -10 | |
| echo "" | |
| echo "ℹ️ Note: MBeautifier requires MATLAB Editor which is not available in CI." | |
| echo "🔧 To format code locally, run:" | |
| echo " git clone https://github.com/davidvarga/MBeautifier.git .github/scripts/MBeautifier" | |
| echo " matlab -batch \"addpath('.github/scripts'); format_matlab_code\"" | |
| echo "" | |
| echo "✅ Formatting check completed (local formatting recommended)" |