Skip to content

chore: run prettier format on all codebase #276

chore: run prettier format on all codebase

chore: run prettier format on all codebase #276

name: 'dhis2: verify (commits)'
on:
pull_request:
types: ['opened', 'edited', 'reopened', 'synchronize']
jobs:
lint:
uses: dhis2/workflows-platform/.github/workflows/lint.yml@v1
with:
node-version: 16

Check failure on line 11 in .github/workflows/dhis2-verify-commits.yml

View workflow run for this annotation

GitHub Actions / dhis2: verify (commits)

Invalid workflow file

The workflow is not valid. .github/workflows/dhis2-verify-commits.yml (Line: 11, Col: 25): Invalid input, node-version is not defined in the referenced workflow. .github/workflows/dhis2-verify-commits.yml (Line: 12, Col: 18): Invalid input, cache is not defined in the referenced workflow.
cache: 'yarn'
lint-pr-title:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
- run: yarn install --frozen-lockfile
- id: commitlint
run: echo ::set-output name=config_path::$(node -e "process.stdout.write(require('@dhis2/cli-style').config.commitlint)")
- uses: JulienKode/[email protected]
with:
configuration-path: ${{ steps.commitlint.outputs.config_path }}
lint-commits:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
- run: yarn install --frozen-lockfile
- id: commitlint
run: echo ::set-output name=config_path::$(node -e "process.stdout.write(require('@dhis2/cli-style').config.commitlint)")
- uses: wagoid/commitlint-github-action@v4
with:
configFile: ${{ steps.commitlint.outputs.config_path }}