Skip to content
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

test: setup base for unit testing using vitest #531

Merged
merged 31 commits into from
Feb 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
9a9ce70
docs: added TODO to move to env attestation base
geolffreym Feb 6, 2025
93451d5
Merge pull request #530 from WatchItDev/next
geolffreym Feb 6, 2025
16319fa
fix: improve message on expired session
geolffreym Feb 6, 2025
d8e131e
fix: improve message on expired session
geolffreym Feb 6, 2025
7a9af55
feat: integrate Vitest for testing and coverage setup
cswni Feb 7, 2025
5eb064a
test(modal): add unit tests for Modal component
cswni Feb 7, 2025
2831ef9
refactor(testing): update jest-dom import in setupTest
cswni Feb 7, 2025
5568f34
test(modal): improve and expand modal component tests
cswni Feb 7, 2025
8edaa0e
fix(ci): update test command in workflow
cswni Feb 7, 2025
280d1a8
feat(ci): add test coverage collection to CI workflow
cswni Feb 7, 2025
79481f4
test: add snapshot test for modal component
cswni Feb 7, 2025
12944a1
ci: add caching for Node dependencies in CI workflow
cswni Feb 7, 2025
1c5937d
chore(ci): update test command and comment out report generation
cswni Feb 7, 2025
9052414
ci: remove Node.js dependency caching from workflow
cswni Feb 7, 2025
94f8b6e
chore: added ci codecov upload
geolffreym Feb 7, 2025
6ab9d6a
Merge branch 'main' into app/feat/setup-testing
cswni Feb 7, 2025
bb39510
chore: enable test coverage reporting in CI pipeline
cswni Feb 7, 2025
c86918b
refactor(ci): separate test and coverage steps
cswni Feb 7, 2025
1bde1df
chore: added ci codecov upload
geolffreym Feb 7, 2025
3fd154a
chore: added ci codecov upload
geolffreym Feb 7, 2025
c6701c4
chore: added ci codecov upload
geolffreym Feb 7, 2025
10f5889
Merge branch 'main' into app/feat/setup-testing
cswni Feb 7, 2025
3d30a07
feat(ci): streamline CI workflow steps for testing
cswni Feb 7, 2025
e9e378a
chore(ci): downgrade Codecov action to v4
cswni Feb 7, 2025
6cb2a18
ci: enable Codecov report upload configuration
cswni Feb 7, 2025
e96cc73
chore: added ci codecov upload
geolffreym Feb 7, 2025
9abeb8a
chore: added ci codecov upload
geolffreym Feb 7, 2025
e48f6cc
chore: added ci codecov upload
geolffreym Feb 7, 2025
3c98ceb
chore: added ci codecov upload
geolffreym Feb 7, 2025
79f2bd0
chore: added ci codecov upload
geolffreym Feb 7, 2025
537b029
chore: added bundle support upload
geolffreym Feb 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,20 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Build analysis
run: npm run build

- name: Run static analysis
run: npm run lint

- name: Test
run: make test
- name: Test
run: npm run test

- name: Generate coverage report
run: npm run test:coverage

- name: Generate report
run: make testcov
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: WatchItDev/watchit-app
8 changes: 4 additions & 4 deletions .github/workflows/next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ on:
branches:
- next
jobs:
# Continuous-Integration:
# uses: ./.github/workflows/ci.yml
# secrets: inherit
Continuous-Integration:
uses: ./.github/workflows/ci.yml
secrets: inherit
Create-Release:
# needs: [Continuous-Integration]
needs: [Continuous-Integration]
uses: ./.github/workflows/release.yml
permissions:
contents: write # to be able to publish a GitHub release
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/stable.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
name: Release CI/CD
name: Main CI/CD
# https://docs.github.com/en/actions/managing-workflow-runs/skipping-workflow-runs
on:
push:
branches:
- main
jobs:
# Continuous-Integration:
# uses: ./.github/workflows/ci.yml
# secrets: inherit
Continuous-Integration:
uses: ./.github/workflows/ci.yml
secrets: inherit
Deploy-App:
needs: [Continuous-Integration]
uses: ./.github/workflows/cd.yml
secrets: inherit
with:
Expand Down
Loading