mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user