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`.
This commit is contained in:
Joe Previte
2022-09-28 16:16:28 +00:00
parent af502a6a66
commit 9ded224911
+4
View File
@@ -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