Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
test(e2e): validate the standalone e2e project in CI
James Damd28115ea261e
diff --git a/.gitattributes b/.gitattributesindex 383338e04..03657867e 100644--- a/.gitattributes+++ b/.gitattributes@@ -1 +1,5 @@Cargo.lock -diff++# Lockfiles are generated; collapse them in review and keep them out of language stats.+# `linguist-generated` rather than `-diff` so `git diff` still works for security audits.+*yarn.lock linguist-generated=truediff --git a/.github/dependabot.yaml b/.github/dependabot.yamlindex 9aac528a5..148c0432d 100644--- a/.github/dependabot.yaml+++ b/.github/dependabot.yaml@@ -11,6 +11,7 @@ updates:- '/'- 'core'- 'docs'+ - 'e2e'- 'extensions'- 'extensions/*'- 'web-app'diff --git a/.github/workflows/e2e-check.yml b/.github/workflows/e2e-check.ymlnew file mode 100644index 000000000..cc60c410d--- /dev/null+++ b/.github/workflows/e2e-check.yml@@ -0,0 +1,36 @@+# e2e/ is a standalone yarn project, so no other workflow's path filter or+# install covers it -- an e2e-only PR would otherwise trigger nothing at all.+# This validates the harness type-checks and its lockfile is current. It does+# NOT run the suite: that needs a macOS runner and a full app build.+name: e2e harness check++on:+ push:+ branches: [main]+ paths: ['e2e/**', '.github/workflows/e2e-check.yml']+ pull_request:+ paths: ['e2e/**', '.github/workflows/e2e-check.yml']++jobs:+ typecheck:+ name: typecheck+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6++ - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4+ with:+ node-version: 20++ # --immutable fails if e2e/yarn.lock is out of date with package.json.+ # Enforceable here precisely because this project is standalone; the root+ # workflows all disable immutable installs.+ - name: Install+ working-directory: e2e+ run: |+ corepack enable+ yarn install --immutable++ - name: Typecheck+ working-directory: e2e+ run: yarn typecheckdiff --git a/package.json b/package.jsonindex cff24f5d9..14fd22b38 100644--- a/package.json+++ b/package.json@@ -49,7 +49,7 @@"build:web": "yarn workspace @janhq/web-app build","build:extensions": "yarn workspace @janhq/core build && yarn workspaces foreach -Apt --include '@janhq/*-extension' run build","prepare": "husky",- "e2e": "yarn build:e2e:app && cd e2e && yarn install && yarn test",+ "e2e": "yarn build:e2e:app && cd e2e && yarn install --immutable && yarn test","build:e2e:app": "yarn build:icon && ./scripts/stub-tauri-resources.sh && cross-env IS_TAURI=true yarn build:web && cargo build --locked --manifest-path src-tauri/Cargo.toml --features e2e --bin Jan-Desktop"},"devDependencies": {