From 246c05e2b436668cb255fdd39bf73af436019ccd Mon Sep 17 00:00:00 2001 From: m-tartari <37861893+m-tartari@users.noreply.github.com> Date: Mon, 19 Feb 2024 17:17:30 +0100 Subject: [PATCH 1/4] =?UTF-8?q?=F0=9F=91=B7=20chore(ci):=20add=20codecov?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .codecov.yml | 25 +++++++++++++++++++++++++ .github/workflows/build.yml | 10 +++++----- 2 files changed, 30 insertions(+), 5 deletions(-) create mode 100644 .codecov.yml diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 0000000..5c224fc --- /dev/null +++ b/.codecov.yml @@ -0,0 +1,25 @@ +codecov: + require_ci_to_pass: true + +coverage: + precision: 2 # how many decimal places to display in the UI: 0 <= value <= 4 + round: nearest # how coverage is rounded: down/up/nearest + range: 50...75 # custom range of coverage colors from red -> yellow -> green + status: + # pull-requests only + patch: + default: + threshold: 3.0% # coverage can drop up top 3% without giving failure + project: + default: + threshold: 3.0% # coverage can drop up top 3% without giving failure + +# comment: false # to disable comments +comment: + layout: 'header, diff, changes, sunburst, suggestions, tree' + behavior: + default + # option: "default" posts once then update, posts new if delete + # option: "once" post once then updates, if deleted do not post new + # option: "new" delete old, post new + # option: "spammy" post new diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7e2bb8f..f663d78 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,8 +28,8 @@ jobs: - name: Test and generate coverage report run: npm run test:coverage - # TODO: upload coverage report to codecov - # - name: Upload coverage report to Codecov - # uses: codecov/codecov-action@v3 - # with: - # token: ${{ secrets.CODECOV_TOKEN }} + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4.0.1 + env: + token: ${{ secrets.CODECOV_TOKEN }} + slug: m-tartari/m-tartari.github.io From 370b1264ab04663083ed0a923f2525285aac5d89 Mon Sep 17 00:00:00 2001 From: m-tartari <37861893+m-tartari@users.noreply.github.com> Date: Mon, 19 Feb 2024 17:19:50 +0100 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=91=B7=20chore(dependabot):=20fix=20t?= =?UTF-8?q?ypo=20in=20mui=20deps=20group?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/dependabot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index e12da0e..35bdb1c 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -22,4 +22,4 @@ updates: mui: patterns: - '@mui/material' - - '@mui/icon-material' + - '@mui/icons-material' From 8bed4b94fb91cc66f6ef231cbbf3c87b0ac0f9cc Mon Sep 17 00:00:00 2001 From: m-tartari <37861893+m-tartari@users.noreply.github.com> Date: Mon, 19 Feb 2024 17:21:14 +0100 Subject: [PATCH 3/4] =?UTF-8?q?=F0=9F=94=A7=20chore(vscode):=20update=20vi?= =?UTF-8?q?test=20settings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 1 + 1 file changed, 1 insertion(+) diff --git a/.vscode/settings.json b/.vscode/settings.json index 7550ca4..20e246a 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -68,4 +68,5 @@ "todo-tree.filtering.excludeGlobs": [ "**/node_modules" ], + "vitest.enable": true } From 8ce1a843090d2b0ac7e31c7bfd54ebbbf0927441 Mon Sep 17 00:00:00 2001 From: m-tartari <37861893+m-tartari@users.noreply.github.com> Date: Mon, 19 Feb 2024 17:22:11 +0100 Subject: [PATCH 4/4] =?UTF-8?q?=F0=9F=93=9D=20docs(README):=20add=20ci=20s?= =?UTF-8?q?tatus=20badges?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 2 +- README.md | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d5fef84..dae0c42 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,5 +1,5 @@ # Simple workflow for deploying static content to GitHub Pages -name: Deploy static content to Pages +name: deploy on: # Runs on pushes targeting the default branch diff --git a/README.md b/README.md index 666f7e3..ed5c931 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,9 @@ - # [m-tartari.eu](https://m-tartari.eu/) +[![Deployment status](https://github.com/m-tartari/m-tartari.github.io/actions/workflows/deploy.yml/badge.svg)](./.github/workflows/deploy.yml) +[![Build Status](https://github.com/m-tartari/m-tartari.github.io/actions/workflows/build.yml/badge.svg)](./.github/workflows/build.yml) +[![codecov](https://codecov.io/gh/m-tartari/m-tartari.github.io/graph/badge.svg?token=TY80ZNAWME)](https://codecov.io/gh/m-tartari/m-tartari.github.io) + A website where I showcase my projects and skills. ## React + TypeScript + Vite