Replace old location and latency management with cleaner and easier to use design #713
This file contains 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: Go Test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test: | |
strategy: | |
matrix: | |
go-version: ["1.23.4"] | |
platform: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cache/go-build # ubuntu-latest | |
~/Library/Caches/go-build # macos-latest | |
~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Go environment | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Download dependencies | |
run: go mod download | |
- name: Run Go tests | |
run: | | |
go test -v -timeout 5m ./... | |
shell: bash | |
env: | |
HOTSTUFF_LOG: info | |
- name: Run docker tests | |
if: runner.os == 'Linux' | |
run: | | |
cd scripts | |
bash deploy_test.sh |