Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/Eslint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Eslint
on:
workflow_call:
inputs:
subrepo:
required: true
type: string
jobs:
eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0

- name: eslint
uses: reviewdog/action-eslint@556a3fdaf8b4201d4d74d406013386aa4f7dab96 # v1.34.0
with:
fail_level: any
filter_mode: nofilter
reporter: github-check
workdir: ${{ inputs.subrepo }}
14 changes: 14 additions & 0 deletions .github/workflows/Handoff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,17 @@ jobs:
if: contains(needs.handoff.outputs.category, 'TypeScript') && contains(needs.handoff.outputs.directory, 'web')
with:
subrepo: web

web-eslint:
needs: handoff
uses: ./.github/workflows/Eslint.yml
if: contains(needs.handoff.outputs.category, 'TypeScript') && contains(needs.handoff.outputs.directory, 'web')
with:
subrepo: web

web-prettier:
needs: handoff
uses: ./.github/workflows/Prettier.yml
if: contains(needs.handoff.outputs.directory, 'web')
with:
subrepo: web
24 changes: 24 additions & 0 deletions .github/workflows/Prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Prettier
on:
workflow_call:
inputs:
subrepo:
required: true
type: string
jobs:
prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0

- name: prettier
# TODO: Ideally we would use the upstream version, but that is broken due to not supporting fail_level
# https://github.com/EPMatt/reviewdog-action-prettier/issues/72 (the issue is misguided but might still be useful for trcacking)
uses: gcaracuel/reviewdog-action-prettier@ddacbf3caf877fd012b68601baa1903cde600bc7
with:
fail_level: any
filter_mode: nofilter
reporter: github-check
workdir: ${{ inputs.subrepo }}