GitHub Action that runs lint on a GitHub Action
jobs:
build:
steps:
- name: Lint
uses: open-turo/actions-gha/lint@v1
## example value for github-token provided below
github-token: ${{ secrets.GITHUB_TOKEN }}
This action runs the following lint checks:
- action-pre-commit
- check-build - if the action is
node
, this checks that build has been run and committed.
- By default, this action will perform actions/checkout as its first step.
- If the consumer repository has a
package-lock.json
- It will execute
npm ci
before running thepre-commit
step. - It will run the
check-build
action.
- It will execute
- This expects that
.commitlintrc.yaml
will be present at the root level of the consumer repository to enforceconventional-commit
.
parameter | description | required | default |
---|---|---|---|
checkout-repo | Perform checkout as first step of action | false |
true |
github-token | GitHub token that can create/delete comments. Usually - 'secrets.GITHUB_TOKEN' | true |
|
node-version | Node version to use | false |
18 |
semantic-release-extra-plugins | Extra plugins for pre-install when linting the release notes. You can also specify specifying version range for the extra plugins if you prefer. Defaults to install @open-turo/semantic-release-config. | false |
@open-turo/semantic-release-config |
This action is a composite
action.