From 9ded2249118bd4e54d4a014c385816c8aa91aea2 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Wed, 28 Sep 2022 16:16:28 +0000 Subject: [PATCH] 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`. --- .github/workflows/coder.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/coder.yaml b/.github/workflows/coder.yaml index 80e0599200..13c257d4c3 100644 --- a/.github/workflows/coder.yaml +++ b/.github/workflows/coder.yaml @@ -128,6 +128,8 @@ jobs: name: "style/lint/typescript" timeout-minutes: 5 runs-on: ubuntu-latest + needs: changes + if: needs.changes.outputs.ts == 'true' steps: - name: Checkout uses: actions/checkout@v3 @@ -517,6 +519,8 @@ jobs: name: "test/js" runs-on: ubuntu-latest timeout-minutes: 20 + needs: changes + if: needs.changes.outputs.ts == 'true' steps: - uses: actions/checkout@v3