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>
60 lines
1.4 KiB
YAML
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
|