-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: fix build * refactor: everything * chore: update renovate config * fix: vitests * fix: vitest * fix: tweak tests * ci: only release after tests pass
- Loading branch information
Showing
27 changed files
with
3,153 additions
and
2,033 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue}] | ||
charset = utf-8 | ||
indent_size = 2 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.{html}] | ||
charset = utf-8 | ||
indent_size = 4 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,17 @@ | ||
{ | ||
"extends": [ | ||
"config:base", | ||
"group:all", | ||
"schedule:weekly", | ||
":widenPeerDependencies" | ||
], | ||
"enabledManagers": [ | ||
"npm" | ||
], | ||
"extends": ["config:recommended", "group:all", "schedule:weekly", ":widenPeerDependencies"], | ||
"enabledManagers": ["npm"], | ||
"packageRules": [ | ||
{ | ||
"matchManagers": [ | ||
"npm" | ||
], | ||
"matchManagers": ["npm"], | ||
"automerge": true, | ||
"stabilityDays": 2 | ||
"minimumReleaseAge": "2 days" | ||
}, | ||
{ | ||
"matchPackagePatterns": [ | ||
"npm" | ||
], | ||
"rangeStrategy": "auto" | ||
"rangeStrategy": "auto", | ||
"matchPackageNames": ["/npm/"] | ||
} | ||
], | ||
"timezone": "Europe/Helsinki", | ||
"dependencyDashboard": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: E2E Test | ||
name: Tests | ||
|
||
on: | ||
push: | ||
|
@@ -9,52 +9,66 @@ on: | |
- 'pnpm-lock.yaml' | ||
- 'src/**/*.ts' | ||
- 'src/**/*.vue' | ||
- 'tests/e2e/**/*.spec.ts' | ||
- 'tests/**/*.ts' | ||
pull_request: | ||
paths: | ||
- '.github/workflows/e2e.yml' | ||
- 'pnpm-lock.yaml' | ||
- 'src/**/*.ts' | ||
- 'src/**/*.vue' | ||
- 'tests/e2e/**/*.spec.ts' | ||
- 'tests/**/*.ts' | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: e2e-${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
group: tests-${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
e2e-tests: | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
CI: 1 | ||
DEBUG: 0 | ||
PLAYWRIGHT_BROWSERS_PATH: 0 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/cache@v3 | ||
- uses: actions/checkout@v4.2.2 | ||
- uses: actions/cache@v4.1.2 | ||
with: | ||
path: /home/runner/.local/share/pnpm/store | ||
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}- | ||
- uses: pnpm/action-setup@v2 | ||
- uses: pnpm/action-setup@v2.4.1 | ||
with: | ||
version: 8 | ||
version: 9 | ||
run_install: true | ||
- uses: actions/setup-node@v3 | ||
- uses: actions/setup-node@v4.1.0 | ||
with: | ||
node-version: 18 | ||
node-version: 22 | ||
cache: 'pnpm' | ||
|
||
- name: Build front | ||
run: pnpm build | ||
|
||
- name: Test front | ||
run: pnpm coverage | ||
|
||
- name: Component Coverage | ||
uses: davelosert/[email protected] | ||
if: ${{ always() }} | ||
with: | ||
working-directory: ./ | ||
vite-config-path: ./vite.config.ts | ||
|
||
- name: Install Playwright browsers | ||
run: npx playwright install --with-deps | ||
|
||
- name: Run e2e tests | ||
run: pnpm test:ci-e2e | ||
|
||
- uses: actions/upload-artifact@v3 | ||
- uses: actions/upload-artifact@v4.4.3 | ||
if: always() | ||
with: | ||
name: playwright-report | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
.DS_Store | ||
node_modules | ||
dist | ||
*.tsbuildinfo | ||
|
||
/tests/e2e/videos/ | ||
/tests/e2e/screenshots/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/prettierrc", | ||
"semi": false, | ||
"tabWidth": 2, | ||
"singleQuote": true, | ||
"printWidth": 120, | ||
"arrowParens": "avoid", | ||
"trailingComma": "es5" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.