|
1 | | -name: build-test |
| 1 | +name: build |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | pull_request: |
|
78 | 78 | make vet |
79 | 79 |
|
80 | 80 | # Unit and integration tests |
81 | | - test: |
82 | | - if: github.event_name == 'push' && needs.changes.outputs.go-files == 'true' |
83 | | - needs: [changes, lint] |
84 | | - runs-on: ubuntu-latest |
85 | | - timeout-minutes: 20 |
86 | | - steps: |
87 | | - - uses: actions/checkout@v5 |
88 | | - - uses: ./.github/actions/setup-go |
89 | | - |
90 | | - - name: Setup K3s |
91 | | - uses: replicatedhq/action-k3s@main |
92 | | - with: |
93 | | - version: v1.31.2-k3s1 |
94 | | - |
95 | | - - name: Run tests |
96 | | - run: make test-integration |
| 81 | + # (moved to push-full-tests.yml) |
97 | 82 |
|
98 | 83 | # Build binaries |
99 | 84 | build: |
@@ -124,64 +109,26 @@ jobs: |
124 | 109 | path: bin/ |
125 | 110 | retention-days: 1 |
126 | 111 |
|
127 | | - # E2E tests |
128 | | - e2e: |
129 | | - if: github.event_name == 'push' |
130 | | - needs: [changes, build] |
131 | | - runs-on: ubuntu-latest |
132 | | - timeout-minutes: 15 |
133 | | - strategy: |
134 | | - fail-fast: false |
135 | | - matrix: |
136 | | - include: |
137 | | - - name: preflight |
138 | | - target: preflight-e2e-test |
139 | | - needs-k3s: true |
140 | | - - name: support-bundle-shell |
141 | | - target: support-bundle-e2e-test |
142 | | - needs-k3s: true |
143 | | - - name: support-bundle-go |
144 | | - target: support-bundle-e2e-go-test |
145 | | - needs-k3s: false |
146 | | - steps: |
147 | | - - uses: actions/checkout@v5 |
148 | | - |
149 | | - - name: Setup K3s |
150 | | - if: matrix.needs-k3s |
151 | | - uses: replicatedhq/action-k3s@main |
152 | | - with: |
153 | | - version: v1.31.2-k3s1 |
154 | | - |
155 | | - - uses: actions/download-artifact@v4 |
156 | | - with: |
157 | | - name: binaries |
158 | | - path: bin/ |
159 | | - |
160 | | - - run: chmod +x bin/* |
161 | | - - run: make ${{ matrix.target }} |
| 112 | + # (moved to push-full-tests.yml) |
162 | 113 |
|
163 | 114 | # Success summary |
164 | 115 | success: |
165 | 116 | if: always() |
166 | | - needs: [lint, test, build, e2e] |
| 117 | + needs: [lint, build] |
167 | 118 | runs-on: ubuntu-latest |
168 | 119 | steps: |
169 | 120 | - name: Check results |
170 | 121 | run: | |
171 | 122 | # Check if any required jobs failed |
172 | 123 | if [[ "${{ needs.lint.result }}" == "failure" ]] || \ |
173 | | - [[ "${{ needs.test.result }}" == "failure" ]] || \ |
174 | | - [[ "${{ needs.build.result }}" == "failure" ]] || \ |
175 | | - [[ "${{ needs.e2e.result }}" == "failure" ]]; then |
| 124 | + [[ "${{ needs.build.result }}" == "failure" ]]; then |
176 | 125 | echo "::error::Some jobs failed or were cancelled" |
177 | 126 | exit 1 |
178 | 127 | fi |
179 | 128 | |
180 | 129 | # Check if any required jobs were cancelled |
181 | 130 | if [[ "${{ needs.lint.result }}" == "cancelled" ]] || \ |
182 | | - [[ "${{ needs.test.result }}" == "cancelled" ]] || \ |
183 | | - [[ "${{ needs.build.result }}" == "cancelled" ]] || \ |
184 | | - [[ "${{ needs.e2e.result }}" == "cancelled" ]]; then |
| 131 | + [[ "${{ needs.build.result }}" == "cancelled" ]]; then |
185 | 132 | echo "::error::Some jobs failed or were cancelled" |
186 | 133 | exit 1 |
187 | 134 | fi |
|
0 commit comments