-
Notifications
You must be signed in to change notification settings - Fork 0
Development 05 #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
396595e
feat(testing): setup Vitest + RTL + Cypress with full test suite
halilibrahimcelik f19e28e
fix: update getArticleById command type and remove coverage threshold…
halilibrahimcelik 3b55693
refactor: update login command to use environment variables and sessi…
halilibrahimcelik 22a4012
Initial plan
Copilot 239dbdd
feat: enhance SEO with dynamic metadata, OpenGraph images, and social…
Copilot a65eecc
Merge pull request #5 from halilibrahimcelik/copilot/enhance-seo-perf…
halilibrahimcelik 47ebf6c
feat: add staggered animation to article cards and enhance article vi…
halilibrahimcelik a199418
feat: implement AI-driven inline writing suggestions and enhance arti…
halilibrahimcelik a0f0c61
feat: enhance WikiEditor with AI suggestion handling and Tab key inte…
halilibrahimcelik cfceecc
feat: implement article polishing feature with AI integration and too…
halilibrahimcelik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,116 @@ | ||
| name: Tests | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main, development-05] | ||
| pull_request: | ||
| branches: [main, development-05] | ||
|
|
||
| jobs: | ||
| unit-tests: | ||
| runs-on: ubuntu-latest | ||
| name: Unit Tests | ||
|
|
||
| strategy: | ||
| matrix: | ||
| node-version: [18.x, 20.x] | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup pnpm | ||
| uses: pnpm/action-setup@v2 | ||
| with: | ||
| version: 10 | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: ${{ matrix.node-version }} | ||
| cache: "pnpm" | ||
|
|
||
| - name: Install dependencies | ||
| run: pnpm install --frozen-lockfile | ||
|
|
||
| - name: Run unit tests | ||
| run: pnpm test | ||
|
|
||
| - name: Generate coverage report | ||
| run: pnpm test:coverage | ||
|
|
||
| - name: Upload coverage to Codecov | ||
| uses: codecov/codecov-action@v3 | ||
| with: | ||
| files: ./coverage/coverage-final.json | ||
| flags: unittests | ||
| name: codecov-umbrella | ||
| fail_ci_if_error: false | ||
|
|
||
| lint: | ||
| runs-on: ubuntu-latest | ||
| name: Lint & Type Check | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup pnpm | ||
| uses: pnpm/action-setup@v2 | ||
| with: | ||
| version: 10 | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 20.x | ||
| cache: "pnpm" | ||
|
|
||
| - name: Install dependencies | ||
| run: pnpm install --frozen-lockfile | ||
|
|
||
| - name: Lint code | ||
| run: pnpm lint | ||
|
|
||
| - name: Type check | ||
| run: pnpm typecheck | ||
|
|
||
| e2e-tests: | ||
| runs-on: ubuntu-latest | ||
| name: E2E Tests | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup pnpm | ||
| uses: pnpm/action-setup@v2 | ||
| with: | ||
| version: 10 | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 20.x | ||
| cache: "pnpm" | ||
|
|
||
| - name: Install dependencies | ||
| run: pnpm install --frozen-lockfile | ||
|
|
||
| - name: Build application | ||
| run: pnpm build | ||
|
|
||
| - name: Run E2E tests | ||
| run: pnpm test:e2e:headless | ||
| continue-on-error: true | ||
|
|
||
| - name: Upload Cypress screenshots | ||
| uses: actions/upload-artifact@v3 | ||
| if: failure() | ||
| with: | ||
| name: cypress-screenshots | ||
| path: cypress/screenshots | ||
|
|
||
| - name: Upload Cypress videos | ||
| uses: actions/upload-artifact@v3 | ||
| if: always() | ||
| with: | ||
| name: cypress-videos | ||
| path: cypress/videos | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,6 +12,7 @@ | |
|
|
||
| # testing | ||
| /coverage | ||
| cypress.env.json | ||
|
|
||
| # next.js | ||
| /.next/ | ||
|
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The E2E job builds the Next app and then runs
cypress run, but it never starts a server onhttp://localhost:3000, so Cypress will fail to loadbaseUrl. Additionally,continue-on-error: truemasks failures, so the workflow can go green even when E2E is broken. Start the app in the background (e.g.,pnpm startwith a wait-on) and removecontinue-on-errorif E2E is meant to gate CI.