mirror of
https://github.com/JoshiCodes/knock.git
synced 2026-12-04 15:09:41 +01:00
- ci.yml checks frontend types and build, core tests and that app and CLI compile on every push and pull request - release.yml publishes a GitHub release with notes and checksums for tags; scripts/release.sh bumps the version everywhere, tags and pushes - The Gitea workflow is gone; PKGBUILDs download from GitHub - Every clickable element shows the pointer and has a hover state; disabled controls show not-allowed - Dev-only fake backend (open the dev server with ?mock) for design work - README: docs link, install per platform, development, releasing
35 lines
881 B
YAML
35 lines
881 B
YAML
name: ci
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
concurrency:
|
|
group: ci-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- uses: actions/setup-node@v5
|
|
with:
|
|
node-version: 22
|
|
cache: npm
|
|
- uses: Swatinem/rust-cache@v2
|
|
- name: System libraries
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev libdbus-1-dev
|
|
- run: npm ci
|
|
- name: Frontend types
|
|
run: npx svelte-check --tsconfig ./tsconfig.json
|
|
- name: Frontend build
|
|
run: npm run build
|
|
- name: Core tests
|
|
run: cargo test -p knock-core --locked
|
|
- name: App and CLI compile
|
|
run: cargo check --locked -p knock-app -p knock-cli
|