[#192] ์๋ฒ props ๋์ useSearchParams ์ฌ์ฉํ์ฌ ํด๋ผ์ด์ธํธ ์ปดํฌ๋ํธ ์์ #248
Workflow file for this run
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: Test and Lint | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| - 'dev' | |
| pull_request: | |
| branches: | |
| - '**' | |
| permissions: | |
| contents: write | |
| issues: write | |
| pull-requests: write | |
| jobs: | |
| build-and-test: | |
| name: Build and Test | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [18, 20] | |
| steps: | |
| # 1. ์ฝ๋ ์ฒดํฌ์์ | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| # 2. Node.js ์ค์ | |
| - name: Setup node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| # 3. ์์กด์ฑ ์ค์น | |
| - name: Install dependencies | |
| run: npm install --legacy-peer-deps | |
| # 4. Lint ๊ฒ์ฌ | |
| - name: Run Lint | |
| run: npm run lint | |
| # 5. Jest ํ ์คํธ ์คํ ๋ฐ ์ปค๋ฒ๋ฆฌ์ง ๋ฆฌํฌํธ ์์ฑ | |
| - name: Run Jest Tests with Coverage | |
| id: jest-step | |
| run: npm run test -- --coverage | |
| outputs: | |
| build-test-status: ${{ steps.jest-step.outcome }} | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [18, 20] | |
| steps: | |
| # 1. ์ฝ๋ ์ฒดํฌ์์ | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| # 2. Node.js ์ค์ | |
| - name: Setup node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| # 3. ์์กด์ฑ ์ค์น | |
| - name: Install dependencies | |
| run: npm install --legacy-peer-deps | |
| # 4. Lint ๊ฒ์ฌ | |
| - name: Run Lint | |
| id: lint-step | |
| run: npm run lint | |
| outputs: | |
| lint-status: ${{ steps.lint-step.outcome }} | |
| comment: | |
| name: Add Comment | |
| runs-on: ubuntu-latest | |
| needs: | |
| - build-and-test | |
| - lint | |
| # PR์์๋ง comment ๋ฑ๋ก ์คํ | |
| if: github.event_name == 'pull_request' | |
| steps: | |
| - name: Post PR Comment | |
| uses: peter-evans/create-or-update-comment@v3 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| issue-number: ${{ github.event.pull_request.number }} | |
| body: | | |
| ### โ GitHub Actions ์คํ ๊ฒฐ๊ณผ | |
| - **Build and Test**: ${{ needs.build-and-test.outputs.build-test-status == 'success' && '์ฑ๊ณต ๐' || '์คํจ โ' }} | |
| - **Lint**: ${{ needs.lint.outputs.lint-status == 'success' && '์ฑ๊ณต ๐' || '์คํจ โ' }} |