From 8d80606f274b4f542043b5d37f4df6b20837784d Mon Sep 17 00:00:00 2001 From: ROC Date: Tue, 14 Apr 2026 23:20:30 +0800 Subject: [PATCH] fix: add config file setup step in GitHub Actions workflow - Tests require config.yaml to initialize the configuration system - Copy config.yaml.sample before running tests on all platforms - Fixes build failures on Ubuntu, macOS, and Windows runners --- .github/workflows/go.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 9d559d27..55974c49 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -57,6 +57,8 @@ jobs: go-version: ${{ matrix.go-version }} - name: Checkout code uses: actions/checkout@v3 + - name: Setup config file + run: cp config.yaml.sample config.yaml - name: Run tests run: go test -v -race ./... @@ -76,5 +78,7 @@ jobs: go-version: ${{ matrix.go-version }} - name: Checkout code uses: actions/checkout@v3 + - name: Setup config file + run: copy config.yaml.sample config.yaml - name: Run tests run: go test -v ./...