mirror of https://github.com/pkg/sftp.git
Merge pull request #402 from drakkan/ghactions
CI: switch to GitHub Actions
This commit is contained in:
commit
821e052fa0
|
@ -0,0 +1,2 @@
|
||||||
|
[*.yml]
|
||||||
|
indent_size = 2
|
|
@ -0,0 +1,31 @@
|
||||||
|
name: CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [master]
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
run-tests:
|
||||||
|
name: Run test cases
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest, macos-latest]
|
||||||
|
go: [1.15, 1.14]
|
||||||
|
exclude:
|
||||||
|
- os: macos-latest
|
||||||
|
go: 1.14
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Set up Go
|
||||||
|
uses: actions/setup-go@v2
|
||||||
|
with:
|
||||||
|
go-version: ${{ matrix.go }}
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: |
|
||||||
|
make integration
|
||||||
|
make integration_w_race
|
46
.travis.yml
46
.travis.yml
|
@ -1,46 +0,0 @@
|
||||||
language: go
|
|
||||||
go_import_path: github.com/pkg/sftp
|
|
||||||
|
|
||||||
# current and previous stable releases, plus tip
|
|
||||||
# remember to exclude previous and tip for macs below
|
|
||||||
go:
|
|
||||||
- 1.14.x
|
|
||||||
- 1.15.x
|
|
||||||
- tip
|
|
||||||
|
|
||||||
os:
|
|
||||||
- linux
|
|
||||||
- osx
|
|
||||||
|
|
||||||
matrix:
|
|
||||||
exclude:
|
|
||||||
- os: osx
|
|
||||||
go: 1.14.x
|
|
||||||
- os: osx
|
|
||||||
go: tip
|
|
||||||
|
|
||||||
env:
|
|
||||||
global:
|
|
||||||
- GO111MODULE=on
|
|
||||||
|
|
||||||
addons:
|
|
||||||
ssh_known_hosts:
|
|
||||||
- bitbucket.org
|
|
||||||
|
|
||||||
install:
|
|
||||||
- go get -t -v ./...
|
|
||||||
- ssh-keygen -t rsa -q -P "" -f $HOME/.ssh/id_rsa
|
|
||||||
|
|
||||||
script:
|
|
||||||
- go test -integration -v ./...
|
|
||||||
- go test -testserver -v ./...
|
|
||||||
- go test -integration -testserver -v ./...
|
|
||||||
- go test -integration -allocator -v ./...
|
|
||||||
- go test -testserver -allocator -v ./...
|
|
||||||
- go test -integration -testserver -allocator -v ./...
|
|
||||||
- go test -race -integration -v ./...
|
|
||||||
- go test -race -testserver -v ./...
|
|
||||||
- go test -race -integration -testserver -v ./...
|
|
||||||
- go test -race -integration -allocator -v ./...
|
|
||||||
- go test -race -testserver -allocator -v ./...
|
|
||||||
- go test -race -integration -allocator -testserver -v ./...
|
|
|
@ -5,7 +5,7 @@ The `sftp` package provides support for file system operations on remote ssh
|
||||||
servers using the SFTP subsystem. It also implements an SFTP server for serving
|
servers using the SFTP subsystem. It also implements an SFTP server for serving
|
||||||
files from the filesystem.
|
files from the filesystem.
|
||||||
|
|
||||||
[](https://travis-ci.org/pkg/sftp) [](http://godoc.org/github.com/pkg/sftp)
|
 [](http://godoc.org/github.com/pkg/sftp)
|
||||||
|
|
||||||
usage and examples
|
usage and examples
|
||||||
------------------
|
------------------
|
||||||
|
|
Loading…
Reference in New Issue