mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 19:01:54 +00:00
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
35 lines
826 B
YAML
35 lines
826 B
YAML
name: "🧪 Test: Code (Units)"
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
test-code-unit:
|
|
name: 🧪 Run unit tests
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 30
|
|
env:
|
|
NIX_CONFIG: |
|
|
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
|
INFINITO_IMAGE_TAG: ci-${{ github.sha }}
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Run unit tests via make
|
|
shell: bash
|
|
run: |
|
|
set -euo pipefail
|
|
make up
|
|
make test-unit 2>&1 | tee /tmp/unit-output.txt
|
|
|
|
- name: Build step summary from annotations
|
|
if: always()
|
|
working-directory: ${{ github.workspace }}
|
|
run: |
|
|
python3 -m utils.annotations.summarize /tmp/unit-output.txt "Unit Test Annotation Summary"
|