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
pull/717/head
ROC 4 months ago
parent f2df8af8ef
commit 8d80606f27

@ -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 ./...

Loading…
Cancel
Save