Skip to content

Commit 9ded224

Browse files
committed
refactor(ci): only run ts jobs on ts changes
This modifies the `style-lint-typescript` and `test-js` jobs to only run when there are changes in `site`.
1 parent af502a6 commit 9ded224

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/coder.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ jobs:
128128
name: "style/lint/typescript"
129129
timeout-minutes: 5
130130
runs-on: ubuntu-latest
131+
needs: changes
132+
if: needs.changes.outputs.ts == 'true'
131133
steps:
132134
- name: Checkout
133135
uses: actions/checkout@v3
@@ -517,6 +519,8 @@ jobs:
517519
name: "test/js"
518520
runs-on: ubuntu-latest
519521
timeout-minutes: 20
522+
needs: changes
523+
if: needs.changes.outputs.ts == 'true'
520524
steps:
521525
- uses: actions/checkout@v3
522526

0 commit comments

Comments
 (0)