Skip to content

Tree configuration #695

Tree configuration

Tree configuration #695

Workflow file for this run

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