Files
sharedinbox/.forgejo/workflows/ci.yml
T
Thomas SharedInboxandClaude Sonnet 4.6 b95545dff2 fix(ci): generate changelog before analyze (assets/ must exist)
The assets/ directory is created by generate-changelog. Splitting CI into
separate steps meant analyze ran before any step created it, causing a
pubspec.yaml asset_directory_does_not_exist warning that fails the check.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-14 15:39:39 +02:00

60 lines
1.4 KiB
YAML

name: CI
on:
push:
branches: [main]
pull_request:
jobs:
check:
name: Full Project Check
runs-on: self-hosted
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- name: Enable Nix flakes
run: |
mkdir -p ~/.config/nix
echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf
- name: Generate changelog
run: nix develop --command task generate-changelog
- name: Analyze
run: nix develop --command task analyze
- name: Unit + Widget tests
run: nix develop --command task test
- name: Build Linux
run: nix develop --command task build-linux
- name: Integration tests
run: nix develop --command task integration
- name: UI E2E tests
timeout-minutes: 6
run: nix develop --command task integration-ui
- name: Coverage gate
run: nix develop --command task coverage
build-linux:
name: Build Linux Release
runs-on: self-hosted
needs: check
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- name: Enable Nix flakes
run: |
mkdir -p ~/.config/nix
echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf
- name: Build Linux
run: nix develop --command task build-linux-release