Skip to content

Action for checking that all Lingua Franca files in a repo compile

License

Notifications You must be signed in to change notification settings

lf-lang/action-check-lf-files

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

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.

About

Action for checking that all Lingua Franca files in a repo compile

Resources

License

Stars

Watchers

Forks

Packages

No packages published