diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a4a05888e..6339ba912 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,6 +33,7 @@ jobs: min_k8s_version: ${{ steps.vars.outputs.min_k8s_version }} k8s_latest: ${{ steps.vars.outputs.k8s_latest }} helm_changes: ${{ steps.filter.outputs.charts }} + docs_changes: ${{ steps.filter.outputs.docs }} steps: - name: Checkout Repository uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 @@ -55,6 +56,11 @@ jobs: filters: | charts: - charts/nginx-gateway-fabric/**/* + docs: + - design/** + - docs/** + - examples/** + - site/** - name: Output Variables id: vars @@ -78,6 +84,7 @@ jobs: name: Unit Tests runs-on: ubuntu-24.04 needs: vars + if: ${{ needs.vars.outputs.docs_changes == 'true' }} steps: - name: Checkout Repository uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 @@ -109,6 +116,7 @@ jobs: name: NJS Unit Tests runs-on: ubuntu-24.04 needs: vars + if: ${{ needs.vars.outputs.docs_changes == 'true' }} steps: - name: Checkout Repository uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 @@ -267,6 +275,7 @@ jobs: helm-tests: name: Helm Tests needs: [vars, build-oss, build-plus] + if: ${{ needs.vars.outputs.helm_changes == 'true' || github.event_name == 'schedule' }} strategy: fail-fast: false matrix: @@ -281,7 +290,6 @@ jobs: image: ${{ matrix.image }} k8s-version: ${{ matrix.k8s-version }} secrets: inherit - if: ${{ needs.vars.outputs.helm_changes == 'true' || github.event_name == 'schedule' }} publish-helm: name: Package and Publish Helm Chart