Skip to content

[Feat] PR lint, tsc, prettier 검사 workflow 구현 #5

[Feat] PR lint, tsc, prettier 검사 workflow 구현

[Feat] PR lint, tsc, prettier 검사 workflow 구현 #5

Workflow file for this run

name: Check PR
on:
pull_request:
branches:
- main
- develop
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout Branch
uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: latest
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'pnpm'
- name: Install Packages
run: pnpm install --frozen-lockfile
- name: Run Check Scripts
run: |
set -o pipefail
pnpm run check | tee check.log
- name: Print Summary
run: |
echo "## Check Result" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "$(cat check.log)" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY