Skip to content
check-circle

GitHub Action

M routine compilation check

v1 Latest version

M routine compilation check

check-circle

M routine compilation check

Checks M routines for coding errors

Installation

Copy and paste the following snippet into your .yml file.

              

- name: M routine compilation check

uses: RamSailopal/Mcode-Github-Action@v1

Learn more about this action in RamSailopal/Mcode-Github-Action

Choose a version

Mcode-Github-Action

Alt text

Github Action to test the compilation of M code routines

This action searches a repo for files with a .m extension and then attempts to compile the routines in YottaDB returning the output. This forms an integral part of a CI/CD pipeline.

Inputs

repo - The repo to pull and find the routines in. (default https://github.com/RamSailopal/Mcode-Github-Action.git)

gituser - The username for a private repo (default blank - assumes a public repo)

gitpass - The password for a private repo (default blank - assumes a public repo)

Example workflow:

 jobs:
  m_routine_compilation_job:
    runs-on: ubuntu-latest
    name: Check M code by compiling it
    steps:

     - name: M routine compilation check step
       uses: RamSailopal/Mcode-Github-Action@v1
       with:
         repo: 'https://github.com/RamSailopal/Mcode-Github-Action.git'
         gituser: 'tom'
         gitpass: 'smith'