Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
10 changes: 9 additions & 1 deletion .github/workflows/angular.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,13 @@ jobs:
pnpm run build:core
pnpm run build:angular
pnpm run build:angular-formly
- name: Test
- name: Test with coverage
run: pnpm --filter @haiilo/catalyst-angular-workspace run test:ci
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./angular/coverage/**/lcov.info
flags: angular
name: angular-coverage
fail_ci_if_error: true
10 changes: 9 additions & 1 deletion .github/workflows/core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,13 @@ jobs:
run: pnpm run build:tokens
- name: Install Chrome
run: node node_modules/puppeteer/install.mjs
- name: Test
- name: Test with coverage
run: pnpm --filter @haiilo/catalyst run test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./core/coverage/lcov.info
flags: core
name: core-coverage
fail_ci_if_error: true
8 changes: 6 additions & 2 deletions angular/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@
"tsConfig": "projects/catalyst/tsconfig.spec.json",
"watch": false,
"browsers": ["chromium"],
"runnerConfig": "vitest.config.ts"
"runnerConfig": "vitest.config.ts",
"coverage": true,
"coverageReporters": ["lcov", "json", "text"]
}
}
}
Expand Down Expand Up @@ -62,7 +64,9 @@
"tsConfig": "projects/catalyst-formly/tsconfig.spec.json",
"watch": false,
"browsers": ["chromium"],
"runnerConfig": "vitest.config.ts"
"runnerConfig": "vitest.config.ts",
"coverage": true,
"coverageReporters": ["lcov", "json", "text"]
}
}
}
Expand Down
30 changes: 30 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
coverage:
status:
project:
default:
target: 50%
threshold: 1%
if_ci_failed: error
patch:
default:
target: 70%
threshold: 1%
if_ci_failed: error

comment:
layout: "header, diff, flags, components"
behavior: default
require_changes: false
require_base: false
require_head: true

flags:
core:
paths:
- core/src/
carryforward: true
angular:
paths:
- angular/projects/catalyst/src/
- angular/projects/catalyst-formly/src/
carryforward: true
5 changes: 4 additions & 1 deletion core/stencil.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ export const config: Config = {
transform: {
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': './stencil.transformer.js'
},
transformIgnorePatterns: ['node_modules/(?!(?:.pnpm/)?(@haiilo))']
transformIgnorePatterns: ['node_modules/(?!(?:.pnpm/)?(@haiilo))'],
collectCoverage: true,
coverageDirectory: 'coverage',
coverageReporters: ['lcov', 'text', 'json-summary', 'html']
}
};
Loading