Skip to content

CI/CD Integration ​

Coming Soon

CI/CD integration guides are planned for a future release. This page outlines the intended workflow.

GitHub Actions (Planned) ​

Once malt is published to crates.io, a GitHub Action will be available:

.github/workflows/lint.yml
yaml
name: Lint MATLAB
on: [push, pull_request]

jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: watermarkhu/malt-action@main  # planned

Manual CI Setup ​

Until a dedicated action is available, you can install and run malt manually:

.github/workflows/lint.yml
yaml
name: Lint MATLAB
on: [push, pull_request]

jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Install malt
        run: pipx install malt

      - name: Lint
        run: |
          find . -name '*.m' -not -path './vendor/*' | xargs malt

Exit Codes for CI ​

malt's exit codes are designed for CI use:

CodeMeaningCI Behavior
0No issuesBuild passes
1Diagnostics foundBuild fails
2Runtime errorBuild fails

Pre-commit Hook (Planned) ​

A pre-commit hook configuration is planned:

.pre-commit-config.yaml
yaml
repos:
  - repo: https://github.com/watermarkhu/malt
    rev: v0.1.0  # use latest version
    hooks:
      - id: malt
        types: [file]
        files: '\.m$'

Contributing ​

If you'd like to help build CI/CD integrations, see the repository for contribution guidelines.

Copyright © 2026 Mark Shui Hu