test: add 85 comprehensive tests and Gitea CI/CD workflow
CI / build-and-test (push) Failing after 56s
CI / build-and-test (push) Failing after 56s
- test-full.sh: 85 tests covering CLI, DSL parsing (all keywords), config parsing, users/groups, assertions, imports, doctor diagnostics, repos/remotes, index generation, add/remove operations, install DB, resolver (conflicts + missing), scheduler (deptree ordering), build execution + error handling, env operators, init systems, bootloaders, variable interpolation, --root override, rollback config, system env, feature flags, rebuild dry-run - .gitea/workflows/ci.yml: builds on Ubuntu with clang+cmake+ninja, runs all three test suites on push/PR to main Total test count: 31 (DSL) + 23 (init-switch) + 85 (comprehensive) = 139
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
build-and-test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
apt-get update -qq
|
||||
apt-get install -y -qq clang cmake ninja-build
|
||||
|
||||
- name: Build kappa
|
||||
run: |
|
||||
cmake -B build -G Ninja \
|
||||
-DCMAKE_C_COMPILER=clang \
|
||||
-DCMAKE_CXX_COMPILER=clang++
|
||||
cmake --build build
|
||||
|
||||
- name: DSL and CLI tests
|
||||
run: ./test.sh
|
||||
|
||||
- name: Init-switching tests
|
||||
run: ./test-init-switch.sh
|
||||
|
||||
- name: Comprehensive tests
|
||||
run: ./test-full.sh
|
||||
Reference in New Issue
Block a user