Example with npm
validation:
name: Validation
uses: codingones/github-actions-workflows/.github/workflows/node-validation-matrix.yml@main
with:
validation-commands: '["npm run build", "npm run lint.es", "npm run lint.commit", "npm run prettier.check", "npm run test"]'
Example with yarn
validation:
name: Validation
uses: codingones/github-actions-workflows/.github/workflows/node-validation-matrix.yml@main
with:
validation-commands: '["yarn build", "yarn lint.es", "yarn lint.commit", "yarn prettier.check", "yarn test", yarn lint.style]'
package-manager: 'yarn'
install-dependencies-command: "yarn install --frozen-lockfile"
cache-dependency-path: "yarn.lock"