Bumps [actions/cache](https://github.com/actions/cache) from 5.0.5 to 6.1.0.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](27d5ce7f10...55cc834586)
---
updated-dependencies:
- dependency-name: actions/cache
dependency-version: 6.1.0
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
80 lines
2.2 KiB
YAML
80 lines
2.2 KiB
YAML
name: Migration Test Harness
|
|
|
|
on:
|
|
push:
|
|
tags: ['v*']
|
|
workflow_dispatch:
|
|
inputs:
|
|
versions:
|
|
description: 'Specific versions to test (space-separated), or empty for all eras'
|
|
required: false
|
|
default: ''
|
|
mode:
|
|
description: 'Test mode'
|
|
required: false
|
|
default: 'all'
|
|
type: choice
|
|
options:
|
|
- all
|
|
- direct-only
|
|
- stepping-only
|
|
|
|
env:
|
|
BD_DISABLE_METRICS: "1"
|
|
BD_DISABLE_EVENT_FLUSH: "1"
|
|
|
|
jobs:
|
|
migration-test:
|
|
name: Migration fidelity
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 45
|
|
steps:
|
|
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v6
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6
|
|
with:
|
|
go-version-file: 'go.mod'
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y jq sqlite3
|
|
|
|
- name: Install Dolt
|
|
run: |
|
|
curl -fsSL https://github.com/dolthub/dolt/releases/latest/download/install.sh | sudo bash
|
|
dolt version
|
|
|
|
- name: Configure Git
|
|
run: |
|
|
git config --global user.name "CI Bot"
|
|
git config --global user.email "ci@beads.test"
|
|
|
|
- name: Cache old binaries
|
|
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v5
|
|
with:
|
|
path: ~/.cache/beads-regression
|
|
key: migration-test-${{ runner.os }}-${{ runner.arch }}
|
|
|
|
- name: Build candidate
|
|
run: go build -tags gms_pure_go -o bd ./cmd/bd
|
|
|
|
- name: Run migration test harness
|
|
env:
|
|
CANDIDATE_BIN: ./bd
|
|
GIT_CONFIG_NOSYSTEM: "1"
|
|
run: |
|
|
ARGS=""
|
|
if [ "${{ github.event.inputs.mode }}" = "direct-only" ]; then
|
|
ARGS="--direct-only"
|
|
elif [ "${{ github.event.inputs.mode }}" = "stepping-only" ]; then
|
|
ARGS="--stepping-only"
|
|
fi
|
|
if [ -n "${{ github.event.inputs.versions }}" ]; then
|
|
./scripts/migration-test/run.sh ${{ github.event.inputs.versions }}
|
|
else
|
|
./scripts/migration-test/run.sh $ARGS
|
|
fi
|