|
48 | 48 |
|
49 | 49 | test-dev-base: |
50 | 50 | needs: changed |
51 | | - if: contains(needs.changed.outputs.all_changed_files, 'packages/react-server') || contains(needs.changed.outputs.all_changed_files, 'test/') || contains(needs.changed.outputs.all_changed_files, '.github/workflows/ci.yml') |
| 51 | + if: contains(needs.changed.outputs.all_changed_files, 'packages/react-server') || contains(needs.changed.outputs.all_changed_files, 'packages/rsc') || contains(needs.changed.outputs.all_changed_files, 'test/') || contains(needs.changed.outputs.all_changed_files, '.github/workflows/ci.yml') |
52 | 52 | timeout-minutes: 30 |
53 | 53 | runs-on: ${{ matrix.os }} |
54 | 54 | strategy: |
|
81 | 81 |
|
82 | 82 | test-build-start-base: |
83 | 83 | needs: changed |
84 | | - if: contains(needs.changed.outputs.all_changed_files, 'packages/react-server') || contains(needs.changed.outputs.all_changed_files, 'test/') || contains(needs.changed.outputs.all_changed_files, '.github/workflows/ci.yml') |
| 84 | + if: contains(needs.changed.outputs.all_changed_files, 'packages/react-server') || contains(needs.changed.outputs.all_changed_files, 'packages/rsc') || contains(needs.changed.outputs.all_changed_files, 'test/') || contains(needs.changed.outputs.all_changed_files, '.github/workflows/ci.yml') |
85 | 85 | timeout-minutes: 30 |
86 | 86 | runs-on: ${{ matrix.os }} |
87 | 87 | strategy: |
@@ -114,7 +114,7 @@ jobs: |
114 | 114 |
|
115 | 115 | test-build-start-base-edge: |
116 | 116 | needs: changed |
117 | | - if: contains(needs.changed.outputs.all_changed_files, 'packages/react-server') || contains(needs.changed.outputs.all_changed_files, 'test/') || contains(needs.changed.outputs.all_changed_files, '.github/workflows/ci.yml') |
| 117 | + if: contains(needs.changed.outputs.all_changed_files, 'packages/react-server') || contains(needs.changed.outputs.all_changed_files, 'packages/rsc') || contains(needs.changed.outputs.all_changed_files, 'test/') || contains(needs.changed.outputs.all_changed_files, '.github/workflows/ci.yml') |
118 | 118 | timeout-minutes: 30 |
119 | 119 | runs-on: ${{ matrix.os }} |
120 | 120 | strategy: |
@@ -149,7 +149,7 @@ jobs: |
149 | 149 |
|
150 | 150 | test-build-start-base-edge-entry: |
151 | 151 | needs: changed |
152 | | - if: contains(needs.changed.outputs.all_changed_files, 'packages/react-server') || contains(needs.changed.outputs.all_changed_files, 'test/') || contains(needs.changed.outputs.all_changed_files, '.github/workflows/ci.yml') |
| 152 | + if: contains(needs.changed.outputs.all_changed_files, 'packages/react-server') || contains(needs.changed.outputs.all_changed_files, 'packages/rsc') || contains(needs.changed.outputs.all_changed_files, 'test/') || contains(needs.changed.outputs.all_changed_files, '.github/workflows/ci.yml') |
153 | 153 | timeout-minutes: 30 |
154 | 154 | runs-on: ${{ matrix.os }} |
155 | 155 | strategy: |
@@ -184,7 +184,7 @@ jobs: |
184 | 184 |
|
185 | 185 | test-dev-apps: |
186 | 186 | needs: changed |
187 | | - if: contains(needs.changed.outputs.all_changed_files, 'packages/react-server') || contains(needs.changed.outputs.all_changed_files, 'test/') || contains(needs.changed.outputs.all_changed_files, '.github/workflows/ci.yml') |
| 187 | + if: contains(needs.changed.outputs.all_changed_files, 'packages/react-server') || contains(needs.changed.outputs.all_changed_files, 'packages/rsc') || contains(needs.changed.outputs.all_changed_files, 'test/') || contains(needs.changed.outputs.all_changed_files, '.github/workflows/ci.yml') |
188 | 188 | timeout-minutes: 30 |
189 | 189 | runs-on: ${{ matrix.os }} |
190 | 190 | strategy: |
@@ -217,7 +217,7 @@ jobs: |
217 | 217 |
|
218 | 218 | test-build-start-apps: |
219 | 219 | needs: changed |
220 | | - if: contains(needs.changed.outputs.all_changed_files, 'packages/react-server') || contains(needs.changed.outputs.all_changed_files, 'test/') || contains(needs.changed.outputs.all_changed_files, '.github/workflows/ci.yml') |
| 220 | + if: contains(needs.changed.outputs.all_changed_files, 'packages/react-server') || contains(needs.changed.outputs.all_changed_files, 'packages/rsc') || contains(needs.changed.outputs.all_changed_files, 'test/') || contains(needs.changed.outputs.all_changed_files, '.github/workflows/ci.yml') |
221 | 221 | timeout-minutes: 30 |
222 | 222 | runs-on: ${{ matrix.os }} |
223 | 223 | strategy: |
@@ -250,7 +250,7 @@ jobs: |
250 | 250 |
|
251 | 251 | test-build-start-apps-edge: |
252 | 252 | needs: changed |
253 | | - if: contains(needs.changed.outputs.all_changed_files, 'packages/react-server') || contains(needs.changed.outputs.all_changed_files, 'test/') || contains(needs.changed.outputs.all_changed_files, '.github/workflows/ci.yml') |
| 253 | + if: contains(needs.changed.outputs.all_changed_files, 'packages/react-server') || contains(needs.changed.outputs.all_changed_files, 'packages/rsc') || contains(needs.changed.outputs.all_changed_files, 'test/') || contains(needs.changed.outputs.all_changed_files, '.github/workflows/ci.yml') |
254 | 254 | timeout-minutes: 30 |
255 | 255 | runs-on: ${{ matrix.os }} |
256 | 256 | strategy: |
@@ -285,7 +285,7 @@ jobs: |
285 | 285 |
|
286 | 286 | test-build-start-apps-edge-entry: |
287 | 287 | needs: changed |
288 | | - if: contains(needs.changed.outputs.all_changed_files, 'packages/react-server') || contains(needs.changed.outputs.all_changed_files, 'test/') || contains(needs.changed.outputs.all_changed_files, '.github/workflows/ci.yml') |
| 288 | + if: contains(needs.changed.outputs.all_changed_files, 'packages/react-server') || contains(needs.changed.outputs.all_changed_files, 'packages/rsc') || contains(needs.changed.outputs.all_changed_files, 'test/') || contains(needs.changed.outputs.all_changed_files, '.github/workflows/ci.yml') |
289 | 289 | timeout-minutes: 30 |
290 | 290 | runs-on: ${{ matrix.os }} |
291 | 291 | strategy: |
@@ -318,6 +318,43 @@ jobs: |
318 | 318 | env: |
319 | 319 | EDGE_ENTRY: "1" |
320 | 320 |
|
| 321 | + test-rsc: |
| 322 | + needs: changed |
| 323 | + if: contains(needs.changed.outputs.all_changed_files, 'packages/rsc') || contains(needs.changed.outputs.all_changed_files, '.github/workflows/ci.yml') |
| 324 | + timeout-minutes: 10 |
| 325 | + runs-on: ${{ matrix.os }} |
| 326 | + strategy: |
| 327 | + matrix: |
| 328 | + os: [ubuntu-latest] |
| 329 | + node_version: [20, 22, 24] |
| 330 | + include: |
| 331 | + - os: macos-latest |
| 332 | + node_version: 24 |
| 333 | + - os: windows-latest |
| 334 | + node_version: 24 |
| 335 | + fail-fast: false |
| 336 | + |
| 337 | + name: "Test rsc 🧪 node.js v${{ matrix.node_version }} on ${{ matrix.os }}" |
| 338 | + steps: |
| 339 | + - name: Checkout |
| 340 | + uses: actions/checkout@v4 |
| 341 | + |
| 342 | + - uses: ./.github/workflows/actions/common-setup |
| 343 | + with: |
| 344 | + node_version: ${{ matrix.node_version }} |
| 345 | + |
| 346 | + - name: Test @lazarv/rsc with coverage |
| 347 | + working-directory: ./packages/rsc |
| 348 | + run: pnpm test:coverage |
| 349 | + |
| 350 | + - name: Upload coverage report |
| 351 | + if: always() && matrix.os == 'ubuntu-latest' && matrix.node_version == 24 |
| 352 | + uses: actions/upload-artifact@v4 |
| 353 | + with: |
| 354 | + name: rsc-coverage-report |
| 355 | + path: packages/rsc/coverage/ |
| 356 | + retention-days: 30 |
| 357 | + |
321 | 358 | lint: |
322 | 359 | timeout-minutes: 10 |
323 | 360 | runs-on: ubuntu-latest |
|
0 commit comments