This repository offers GitHub Actions for running CI on the Workarea Commerce Platform. These actions will work for plugins or host applications. To see how they're used, check out the CI Action in the base platform repository.
This action runs bundler-audit against the root Gemfile in a repository. It doesn't take any arguments.
This action runs ESLint against the repository. If the project includes ESLint as part of its package, it will use that. Otherwise, it will install and use the latest version. You can pass arguments to ESLint with the args
key like so:
- uses: workarea-commerce/ci/eslint@v1
with:
args: my/js/to/lint/**/*.js
This action runs Rubocop against the repository. If the project includes rubocop in its Gemfile, this version will be used. If the project does not include rubocop, the action will install the latest version and use that. You can pass arguments to rubocop with the args
key like so:
- uses: workarea-commerce/ci/rubocop@v1
with:
args: -c path/to/my/config/rubocop.yml
This action runs stylelint against the repository. If the project includes stylelint as part of its package, it will use that. Otherwise, it will install and use the latest version. You can pass arguments to ESLint with the args
key like so:
- uses: workarea-commerce/ci/stylelint@v1
with:
args: my/stylesheets/to/lint/**/*.js
This action sets up and runs tests for the project. It provides:
- Bundling based on the root Gemfile
- Starting Workarea services based on the version of Workarea in the Gemfile
- Setting the CI=true environment variable
By default the test command it will run is bin/rails test
, but you can customize that with the command
option like so:
- uses: workarea-commerce/ci/test@v1
with:
command: bin/rails test:system