fix adaptive should climb check #503
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 | |
on: | |
push: | |
branches: ['*', '*/*'] | |
tags: ['v*'] | |
pull_request: | |
branches: ['*'] | |
permissions: | |
contents: read | |
jobs: | |
lint: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: '1.20' | |
cache: false | |
- uses: actions/checkout@v3 | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.52.2 | |
test: | |
name: test | |
strategy: | |
matrix: | |
go: ["1.22.x", "1.23.x"] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Go | |
with: | |
go-version: ${{ matrix.go }} | |
uses: actions/setup-go@v2 | |
- uses: actions/checkout@v2 | |
- name: Test | |
run: make cover | |
- name: Upload coverage to codecov.io | |
uses: codecov/codecov-action@v3 | |
test-race-nopool: | |
name: test-race-nopool | |
strategy: | |
matrix: | |
go: ["1.23.x"] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Go | |
with: | |
go-version: ${{ matrix.go }} | |
uses: actions/setup-go@v2 | |
- uses: actions/checkout@v2 | |
- name: Test | |
run: go test ./... -run=TestCacheRace_NoPool -count=1 -race | |
test-race-pool: | |
name: test-race-pool | |
strategy: | |
matrix: | |
go: ["1.23.x"] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Go | |
with: | |
go-version: ${{ matrix.go }} | |
uses: actions/setup-go@v2 | |
- uses: actions/checkout@v2 | |
- name: Test | |
run: go test ./... -run=TestCacheRace_EntryPool -count=1 | |
test-os: | |
name: test-os | |
strategy: | |
matrix: | |
go: ["1.22.x", "1.23.x"] | |
os: [macos-latest, windows-latest, ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Setup Go | |
with: | |
go-version: ${{ matrix.go }} | |
uses: actions/setup-go@v2 | |
- uses: actions/checkout@v2 | |
- name: Test | |
run: | | |
go test ./... -run=TestPersistOS |