Skip to content

fix: restore model from sidecar field when not in cli_args #80

fix: restore model from sidecar field when not in cli_args

fix: restore model from sidecar field when not in cli_args #80

Workflow file for this run

name: test
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
checks: write
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
bash: [bash, bash3.2]
name: test (bash ${{ matrix.bash == 'bash' && '5' || '3.2' }})
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: docker/setup-buildx-action@v3
- name: Build test image
uses: docker/build-push-action@v6
with:
context: .
file: test/Dockerfile
load: true
tags: tmux-assistant-resurrect-test
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Run tests
run: |
mkdir -p test-results
docker run --rm \
-e TEST_BASH=${{ matrix.bash }} \
-v ${{ github.workspace }}/test-results:/tmp/test-results \
tmux-assistant-resurrect-test
- name: Publish test results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: test-results/junit.xml
comment_mode: off
check_name: tests (${{ matrix.bash == 'bash' && 'bash 5' || 'bash 3.2' }})
benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: docker/setup-buildx-action@v3
- name: Build test image
uses: docker/build-push-action@v6
with:
context: .
file: test/Dockerfile
load: true
tags: tmux-assistant-resurrect-test
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Prepare benchmark baseline
run: |
git fetch origin main --depth=1
git worktree add /tmp/benchmark-base origin/main
- name: Run benchmark matrix
run: |
mkdir -p test-results
bash test/bench-matrix.sh \
--head-repo "${GITHUB_WORKSPACE}" \
--base-repo /tmp/benchmark-base \
--runs 5 \
--output-csv test-results/benchmark.csv \
--output-md test-results/benchmark.md
cat test-results/benchmark.md >>"${GITHUB_STEP_SUMMARY}"
- name: Upload benchmark results
uses: actions/upload-artifact@v4
if: always()
with:
name: benchmark-results
if-no-files-found: warn
path: |
test-results/benchmark.csv
test-results/benchmark.md