Skip to content

Commit

Permalink
docs: add coverage badges
Browse files Browse the repository at this point in the history
  • Loading branch information
mp3000mp committed Apr 30, 2024
1 parent 1a82eb3 commit e28f400
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest

env:
DATABASE_URL: "mysql://user1:password1@localhost:3306/auto_entreprise_test"
DATABASE_URL: "mysql://user1:password1@localhost:3306/auto_entreprise_test?serverVersion=10.9.6-MariaDB"
DIRECTORY: ./backend

services:
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ Gestion de micro entreprise
Manage your contacts, opportunities, tenders, incomes, taxes and costs in this amazing application.

[![In Progress](https://img.shields.io/badge/in%20progress-yes-red)](https://img.shields.io/badge/in%20progress-yes-red)

[![backend](https://github.com/mp3000mp/auto-entreprise/actions/workflows/backend.yml/badge.svg)](https://github.com/mp3000mp/auto-entreprise/actions/workflows/backend.yml)
[![codecov](https://codecov.io/gh/mp3000mp/auto-entreprise/graph/badge.svg?token=Z08REIAIKM&flag=backend)](https://codecov.io/gh/mp3000mp/auto-entreprise&flag=backend)

[![frontend](https://github.com/mp3000mp/auto-entreprise/actions/workflows/frontend.yml/badge.svg)](https://github.com/mp3000mp/auto-entreprise/actions/workflows/frontend.yml)
[![codecov](https://codecov.io/gh/mp3000mp/auto-entreprise/graph/badge.svg?token=Z08REIAIKM&flag=frontend)](https://codecov.io/gh/mp3000mp/auto-entreprise&flag=frontend)

This is just a POC.

Expand Down
2 changes: 1 addition & 1 deletion backend/.env
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ APP_SECRET=2e88619cec5f012fd798af8fbac7c9e9
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db"
# DATABASE_URL="mysql://app:[email protected]:3306/app?serverVersion=8.0.32&charset=utf8mb4"
# DATABASE_URL="mysql://app:[email protected]:3306/app?serverVersion=10.11.2-MariaDB&charset=utf8mb4"
DATABASE_URL="postgresql://app:[email protected]:5432/app?serverVersion=15&charset=utf8"
DATABASE_URL="mysql://user1:password1@localhost:3306/auto_entreprise_test?serverVersion=10.9.6-MariaDB"
###< doctrine/doctrine-bundle ###

###> symfony/messenger ###
Expand Down
3 changes: 2 additions & 1 deletion frontend/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { fileURLToPath } from 'node:url'
import { mergeConfig, defineConfig, configDefaults } from 'vitest/config'
import { mergeConfig, defineConfig, configDefaults, coverageConfigDefaults } from 'vitest/config'
import viteConfig from './vite.config'

export default mergeConfig(
Expand All @@ -10,6 +10,7 @@ export default mergeConfig(
exclude: [...configDefaults.exclude, 'e2e/*'],
root: fileURLToPath(new URL('./', import.meta.url)),
coverage: {
exclude: [...coverageConfigDefaults.exclude, '*.config.ts'],
reporter: ['clover']
}
}
Expand Down

0 comments on commit e28f400

Please sign in to comment.