Skip to content
Draft
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
2 changes: 2 additions & 0 deletions .github/workflows/ecosystem-ci-from-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ on:
options:
- "-"
- eslint-plugin-svelte
- immich
- language-tools
- mdsvex
- melt-ui
Expand Down Expand Up @@ -125,6 +126,7 @@ jobs:
matrix:
suite:
- eslint-plugin-svelte
- immich
- language-tools
- mdsvex
- melt-ui
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ecosystem-ci-selected.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ on:
type: choice
options:
- eslint-plugin-svelte
- immich
- language-tools
- mdsvex
- melt-ui
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ecosystem-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
matrix:
suite:
- eslint-plugin-svelte
- immich
- language-tools
- mdsvex
- melt-ui
Expand Down
24 changes: 24 additions & 0 deletions tests/immich.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { runInRepo } from '../utils.ts'
import { RunOptions } from '../types.js'

export async function test(options: RunOptions) {
await runInRepo({
...options,
repo: 'immich-app/immich',
branch: 'main',
overrides: {
'@sveltejs/vite-plugin-svelte': true,
'@sveltejs/vite-plugin-svelte-inspector': true,
'@sveltejs/kit': true,
'svelte-check': true,
},
build: [
'pnpm --dir open-api/typescript-sdk build', // required for web build
'pnpm --dir web build',
],
test: [
'pnpm --dir web test', // unit & component tests
'pnpm --dir web check:svelte', // svelte-check
],
})
}
2 changes: 1 addition & 1 deletion utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ function toCommand(
task: Task | Task[] | void,
agent: (typeof AGENTS)[number],
): ((scripts: any) => Promise<any>) | void {
return async (scripts: any) => {
return async (scripts = {}) => {
const tasks = Array.isArray(task) ? task : [task]
for (const task of tasks) {
if (task == null || task === '') {
Expand Down
Loading