diff --git a/.github/workflows/coder.yaml b/.github/workflows/coder.yaml index 762dd02413..2ee79931b1 100644 --- a/.github/workflows/coder.yaml +++ b/.github/workflows/coder.yaml @@ -68,6 +68,8 @@ jobs: # - '.github/**' sh: - "**.sh" + go: + - "**.go" ts: - 'site/**' k8s: @@ -92,6 +94,8 @@ jobs: name: style/lint/golangci timeout-minutes: 5 runs-on: ubuntu-latest + needs: changes + if: needs.changes.outputs.go == 'true' steps: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 @@ -284,6 +288,8 @@ jobs: name: "test/go" runs-on: ${{ matrix.os }} timeout-minutes: 20 + needs: changes + if: needs.changes.outputs.go == 'true' strategy: matrix: os: @@ -368,6 +374,8 @@ jobs: # goroutines. Setting this to the timeout +5m should work quite well # even if some of the preceding steps are slow. timeout-minutes: 25 + needs: changes + if: needs.changes.outputs.go == 'true' steps: - uses: actions/checkout@v3