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 # plannedManual 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 maltExit Codes for CI
malt's exit codes are designed for CI use:
| Code | Meaning | CI Behavior |
|---|---|---|
0 | No issues | Build passes |
1 | Diagnostics found | Build fails |
2 | Runtime error | Build 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.