diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..41ad5b2 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,21 @@ +name: ci + +on: + pull_request: + branches: [main] + +jobs: + verify: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: npm + + - run: npm ci + - run: npm run lint + - run: npm run test + - run: npm run build diff --git a/src/pages/LinkRequestPage/LinkRequestPage.test.tsx b/src/pages/LinkRequestPage/LinkRequestPage.test.tsx index 8d9ed3f..f66a7f8 100644 --- a/src/pages/LinkRequestPage/LinkRequestPage.test.tsx +++ b/src/pages/LinkRequestPage/LinkRequestPage.test.tsx @@ -49,7 +49,7 @@ describe('LinkRequestPage', () => { await user.click(await screen.findByRole('button', { name: '안내를 확인했습니다' })) - expect(screen.getByText('upload screen')).toBeInTheDocument() + expect(await screen.findByText('upload screen')).toBeInTheDocument() const responseCall = vi .mocked(fetch) .mock.calls.find(([url]) => String(url).endsWith('/responses'))