Skip to content

Commit

Permalink
Merge pull request #531 from WatchItDev/app/feat/setup-testing
Browse files Browse the repository at this point in the history
test: setup base for unit testing using vitest
  • Loading branch information
geolffreym authored Feb 7, 2025
2 parents 0df5d59 + 537b029 commit 04663da
Show file tree
Hide file tree
Showing 14 changed files with 2,508 additions and 27 deletions.
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

0 comments on commit 04663da

Please sign in to comment.