Skip to content
play

GitHub Action

Check Lingua Franca files

v1.0.0 Latest version

Check Lingua Franca files

play

Check Lingua Franca files

Ensure that all Lingua Franca files compile and are formatted correctly

Installation

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

              

- name: Check Lingua Franca files

uses: lf-lang/[email protected]

Learn more about this action in lf-lang/action-check-lf-files

Choose a version

typescript-action status

Summary

Action for repositories with Lingua Franca code to ensure that the source files work with a particular version of the compiler (the latest release is used by default). It recursively visits a given search_dir, finds every .lf file, and reports each file that either fails a compile or format check, depending on the specified check_mode parameter. This action was initially developed for use in the Lingua Franca Playground.

Usage

- uses: lf-lang/action-check-lf-files@main
  with:
    checkout_dir: 'lingua-franca'                   # Where the lingua-franca repo should be
    check_mode: `compile`                           # Do `compile` (default) or `format` check
    compiler_ref: 'master'                          # Which version of the compiler to use
    delete_if_exists: false                         # Delete if `checkout_dir` already exists
    exclude_dirs: '["failing", "experimental"]'     # JSON array of directories not to visit
    no_compile_flag: false                          # Run lfc with `--no-compile` flag if true
    skip_clone: false                               # Use an existing clone of `lingua-franca`
    search_dir: '.'                                 # Where to start looking for `.lf` files

Contributing

For developer docs that describe how to build, test, and publish, have a look here.