diff --git a/seaweed-block/.github/workflows/test.yml b/seaweed-block/.github/workflows/test.yml index df5114a0a4..b3010fb44c 100644 --- a/seaweed-block/.github/workflows/test.yml +++ b/seaweed-block/.github/workflows/test.yml @@ -56,6 +56,41 @@ jobs: - name: Test default configuration run: go test -p=1 -short -count=1 -timeout 10m ./... + test-legacy: + name: go test legacy-fixture (hosted) + # Second runner: the legacy-fixture pass runs on a GitHub-hosted runner in + # parallel with the default pass on tp04, so neither job queues behind the + # other on the single self-hosted runner. + runs-on: ubuntu-latest + timeout-minutes: 30 + env: + CGO_ENABLED: "0" + steps: + - name: Checkout + uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 + with: + persist-credentials: false + + - name: Set up Go + uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0 + with: + go-version-file: go.mod + # The self-hosted runner keeps GOCACHE/GOMODCACHE on its own disk; + # uploading them as an Actions cache (~4 GB) in the post step + # outlasted the job timeout after every test had passed. Only the + # GitHub-hosted (fork PR) runner uses the Actions cache. + cache: ${{ runner.environment == 'github-hosted' }} + cache-dependency-path: go.sum + + - name: Go version + run: go version + + - name: Build + run: go build ./... + + - name: Vet + run: go vet ./... + - name: Test legacy-fixture configuration # Legacy-input fixtures and native caller controls stay executable after # their constructors move behind the explicit test-only build tag.