fix: respect user's @continuum-save-interval if already set #58
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: test | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| checks: write | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Build test image | |
| run: docker build -t tmux-assistant-resurrect-test -f test/Dockerfile . | |
| - name: Run tests | |
| run: | | |
| mkdir -p test-results | |
| docker run --rm -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 | |
| - 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 |