Skip to content

📧✨ Beautiful email. For everyone.

ci: validate pull requests without Flatpak packaging (#56)

Paul Koeck8e2e2c539e19
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..3abf10f
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,28 @@
+name: CI
+
+on:
+ pull_request:
+ push:
+ branches: [main]
+ workflow_dispatch:
+
+permissions:
+ contents: read
+
+concurrency:
+ group: ci-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
+
+jobs:
+ check:
+ runs-on: ubuntu-24.04
+ steps:
+ - uses: actions/checkout@v7
+ - uses: actions/setup-node@v7
+ with:
+ node-version: '24'
+ - uses: pnpm/action-setup@v6
+ with:
+ run_install: false
+ - run: pnpm install --frozen-lockfile
+ - run: pnpm check
diff --git a/.github/workflows/flatpak.yml b/.github/workflows/flatpak.yml
index d36fce0..8d57ec9 100644
--- a/.github/workflows/flatpak.yml
+++ b/.github/workflows/flatpak.yml
@@ -1,19 +1,6 @@
name: Build Flatpak
on:
- pull_request:
- paths:
- - '.github/workflows/flatpak.yml'
- - '.github/workflows/release.yml'
- - 'scripts/*flatpak*'
- - 'apps/desktop/**'
- - 'packages/**'
- - 'pnpm-lock.yaml'
- - 'pnpm-workspace.yaml'
- - 'package.json'
- - 'tests/flatpak.test.ts'
- - 'tests/updates.test.ts'
- - 'vitest.config.ts'
workflow_dispatch:
workflow_call:
inputs:
diff --git a/apps/desktop/packaging/flatpak/README.md b/apps/desktop/packaging/flatpak/README.md
index f2f977c..3c785e7 100644
--- a/apps/desktop/packaging/flatpak/README.md
+++ b/apps/desktop/packaging/flatpak/README.md
@@ -62,8 +62,11 @@ updates dependencies from their configured repositories.
`.github/workflows/flatpak.yml` builds the directory archive and generated
manifest, validates desktop/AppStream metadata, builds the bundle and runs the
-installed application smoke test. It runs for relevant PRs, supports manual
-dispatch, and is called by the tag release workflow with the tag's version.
+installed application smoke test. It supports manual dispatch and is called by
+the tag release workflow with the tag’s version. Pull requests run the separate
+CI workflow for formatting, type checks, unit tests and production builds;
+they do not build or install Flatpak bundles. Run the Flatpak workflow manually
+when changing the packaging or sandbox integration.
The release workflow waits for Flatpak validation and publishes the tested bundle
alongside native installers. Both stable and prerelease tags produce bundles.