Skip to content

Commit

Permalink
add lint and prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Konrad Jamrozik committed Jul 15, 2024
1 parent f9bac1b commit 7943e33
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/_reusable-eng-tools-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ on:
description: Name of package under eng/tools
required: true
type: string
lint:
description: Run 'npm run lint' if true
required: false
type: boolean
prettier:
description: Run 'npm run prettier' if true
required: false
type: boolean

jobs:
test:
Expand Down Expand Up @@ -44,6 +52,16 @@ jobs:
shell: pwsh
working-directory: ./eng/tools/${{ inputs.package }}

- run: npm run lint
if: ${{ github.event.inputs.lint == 'true' }}
shell: pwsh
working-directory: ./eng/tools/${{ inputs.package }}

- run: npm run prettier
if: ${{ github.event.inputs.prettier == 'true' }}
shell: pwsh
working-directory: ./eng/tools/${{ inputs.package }}

- run: npm run test:ci
shell: pwsh
working-directory: ./eng/tools/${{ inputs.package }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/specs-model-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ jobs:
uses: ./.github/workflows/_reusable-eng-tools-test.yaml
with:
package: specs-model
lint: true
prettier: true

0 comments on commit 7943e33

Please sign in to comment.