Skip to content

fix issue of leader selection pressure #69

fix issue of leader selection pressure

fix issue of leader selection pressure #69

Workflow file for this run

name: CI
on:
merge_group:
pull_request:
jobs:
golangci:
name: pull-fleetboard-golang-ci
env:
GOPATH: ${{ github.workspace }}
GO111MODULE: on
defaults:
run:
working-directory: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}
strategy:
max-parallel: 3
## this will contain a matrix of all of the combinations
## we wish to test again:
matrix:
go-version: [ 1.21.x, 1.22.x ]
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 1
path: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}
- name: Cache go modules and build cache
uses: actions/[email protected]
with:
# In order:
# * Module download cache
# * Build cache (Linux)
# * Build cache (Mac)
# * Build cache (Windows)
path: |
${{ env.GOPATH }}/pkg/mod
${{ env.GOPATH }}/pkg/sumdb
~/.cache/go-build
~/Library/Caches/go-build
# %LocalAppData%\go-build
key: ${{ matrix.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ matrix.os }}-go-
- name: Golang Lint
run: make lint