feat: Crew, Playground Production 선택 배포 및 릴리스 스크립트 추가 #267
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: Check | |
| on: | |
| pull_request: | |
| merge_group: | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Branch | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 2 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Enable Corepack | |
| run: | | |
| corepack enable | |
| corepack prepare yarn@4.1.1 --activate | |
| yarn -v | |
| - name: Cache Yarn | |
| uses: actions/cache@v4 | |
| id: yarn-cache | |
| with: | |
| path: ~/.yarn/cache | |
| key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-yarn- | |
| - name: Install Packages | |
| run: yarn install --immutable | |
| - name: Typecheck | |
| run: | | |
| set -o pipefail | |
| yarn typecheck 2>&1 | sed 's/\x1B\[[0-9;]*m//g' | tee typecheck.log | |
| - name: Lint | |
| if: always() | |
| run: | | |
| set -o pipefail | |
| yarn lint 2>&1 | sed 's/\x1B\[[0-9;]*m//g' | tee lint.log | |
| - name: Test | |
| if: always() | |
| run: | | |
| set -o pipefail | |
| yarn test:ci 2>&1 | sed 's/\x1B\[[0-9;]*m//g' | tee test.log | |
| - name: Print Summary | |
| if: always() | |
| run: | | |
| echo "## Check Result" >> $GITHUB_STEP_SUMMARY | |
| echo "### Typecheck" >> $GITHUB_STEP_SUMMARY | |
| echo "\`\`\`" >> $GITHUB_STEP_SUMMARY | |
| cat typecheck.log 2>/dev/null >> $GITHUB_STEP_SUMMARY || echo 'skipped' >> $GITHUB_STEP_SUMMARY | |
| echo "\`\`\`" >> $GITHUB_STEP_SUMMARY | |
| echo "### Lint" >> $GITHUB_STEP_SUMMARY | |
| echo "\`\`\`" >> $GITHUB_STEP_SUMMARY | |
| cat lint.log 2>/dev/null >> $GITHUB_STEP_SUMMARY || echo 'skipped' >> $GITHUB_STEP_SUMMARY | |
| echo "\`\`\`" >> $GITHUB_STEP_SUMMARY | |
| echo "### Test" >> $GITHUB_STEP_SUMMARY | |
| echo "\`\`\`" >> $GITHUB_STEP_SUMMARY | |
| cat test.log 2>/dev/null >> $GITHUB_STEP_SUMMARY || echo 'skipped' >> $GITHUB_STEP_SUMMARY | |
| echo "\`\`\`" >> $GITHUB_STEP_SUMMARY |