Skip to content

fix(sshpicker): guard negative cursor selection #292

fix(sshpicker): guard negative cursor selection

fix(sshpicker): guard negative cursor selection #292

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
permissions:
contents: read
jobs:
test:
name: Test (Go ${{ matrix.go-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go-version: ["1.26.x"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Download modules
run: go mod download
- name: Build
run: go build ./...
- name: Test with race detection and coverage
run: go test -race -coverprofile=coverage.out -covermode=atomic ./...
- name: Upload coverage to Codecov
if: matrix.go-version == '1.26.x'
uses: codecov/codecov-action@v5
with:
files: coverage.out
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: stable
- name: Run staticcheck
uses: dominikh/staticcheck-action@v1
with:
install-go: false
- name: Check formatting
run: |
go install golang.org/x/tools/cmd/goimports@latest
test -z "$(goimports -l .)" || (goimports -d . && exit 1)
- name: Vet
run: go vet ./...