feat: split runtime/build server entries to exclude static routes from runtime bundle #3679
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Canary CI | |
| on: | |
| issue_comment: | |
| types: [created] | |
| jobs: | |
| parse-version: | |
| if: ${{ github.event.issue.pull_request && startsWith(github.event.comment.body, '/canary-ci run') }} | |
| runs-on: ubuntu-latest | |
| outputs: | |
| react_version: ${{ steps.get-version.outputs.react_version }} | |
| steps: | |
| - name: Get React version from comment | |
| id: get-version | |
| run: | | |
| comment="${{ github.event.comment.body }}" | |
| # Extract version after '/canary-ci run', defaulting to 'canary' if not specified | |
| version=$(echo "$comment" | sed -n 's/^\/canary-ci run\s*\(\S*\).*/\1/p') | |
| if [ -z "$version" ]; then | |
| version="canary" | |
| fi | |
| echo "react_version=$version" >> $GITHUB_OUTPUT | |
| canary-ci-e2e: | |
| needs: parse-version | |
| uses: ./.github/workflows/e2e.yml | |
| with: | |
| ref: refs/pull/${{ github.event.issue.number }}/head | |
| react_version: ${{ needs.parse-version.outputs.react_version }} | |
| canary-ci-test: | |
| needs: parse-version | |
| uses: ./.github/workflows/test.yml | |
| with: | |
| ref: refs/pull/${{ github.event.issue.number }}/head | |
| react_version: ${{ needs.parse-version.outputs.react_version }} |