mirror of
https://github.com/appleboy/drone-ssh.git
synced 2026-06-04 18:24:01 +08:00
ec330bc0b9
- Bump minimum Go version from 1.24 to 1.25 - Update CI test matrix to Go 1.25 and 1.26, drop 1.24 - Upgrade easyssh-proxy to v1.5.2, urfave/cli to v2.27.7 - Upgrade golang.org/x/crypto to v0.49.0 and other x/ packages Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
56 lines
1.2 KiB
YAML
56 lines
1.2 KiB
YAML
name: Lint and Testing
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: go.mod
|
|
check-latest: true
|
|
|
|
- name: Setup golangci-lint
|
|
uses: golangci/golangci-lint-action@v7
|
|
with:
|
|
version: latest
|
|
args: --verbose
|
|
|
|
- uses: hadolint/hadolint-action@v3.1.0
|
|
name: hadolint for Dockerfile
|
|
with:
|
|
dockerfile: docker/Dockerfile
|
|
|
|
testing:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
go-version: ["1.25", "1.26"]
|
|
container:
|
|
image: golang:${{ matrix.go-version }}-alpine
|
|
options: --sysctl net.ipv6.conf.all.disable_ipv6=0
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: setup sshd server
|
|
run: |
|
|
apk add git make curl perl bash build-base zlib-dev ucl-dev sudo gpg
|
|
make ssh-server
|
|
|
|
- name: testing
|
|
run: |
|
|
make test
|
|
|
|
- name: Upload coverage to Codecov
|
|
uses: codecov/codecov-action@v5
|
|
with:
|
|
flags: go-${{ matrix.go-version }}
|