From 24ded68b0441c2fefdb0306de4603bba1fc6ff45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1ximo=20Cuadros?= Date: Mon, 9 Mar 2020 20:24:39 +0100 Subject: [PATCH] *: replace appveyor and travis with github actions --- ...test-building-binaries-for-supported-os.sh | 22 ------------------- .github/workflows/test.yml | 18 +++++++++++++++ .travis.yml | 17 -------------- appveyor.yml | 15 ------------- 4 files changed, 18 insertions(+), 54 deletions(-) delete mode 100755 .ci/test-building-binaries-for-supported-os.sh create mode 100644 .github/workflows/test.yml delete mode 100644 .travis.yml delete mode 100644 appveyor.yml diff --git a/.ci/test-building-binaries-for-supported-os.sh b/.ci/test-building-binaries-for-supported-os.sh deleted file mode 100755 index 104ece3..0000000 --- a/.ci/test-building-binaries-for-supported-os.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash - -set -e - -os_archs=( - darwin/amd64 - freebsd/amd64 - linux/amd64 - plan9/386 - solaris/amd64 - windows/amd64 -) - -for os_arch in "${os_archs[@]}" -do - goos=${os_arch%/*} - goarch=${os_arch#*/} - echo "Building $goos/$goarch..." - CGO_ENABLED=0 GOOS=${goos} GOARCH=${goarch} go build -o /dev/null ./... -done - -echo "Succeeded building binaries for all supported OS/ARCH pairs!" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..bf1651e --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,18 @@ +on: [push, pull_request] +name: Test +jobs: + test: + strategy: + matrix: + go-version: [1.12.x, 1.13.x, 1.14.x] + platform: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.platform }} + steps: + - name: Install Go + uses: actions/setup-go@v1 + with: + go-version: ${{ matrix.go-version }} + - name: Checkout code + uses: actions/checkout@v2 + - name: Test + run: go test -v ./... \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a05d224..0000000 --- a/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: go - -go: - - 1.12.x - - 1.13.x - -go_import_path: gopkg.in/src-d/go-billy.v4 - -install: - - go get -v -t ./... - -script: - - make test-coverage - - ./.ci/test-building-binaries-for-supported-os.sh - -after_success: - - bash <(curl -s https://codecov.io/bash) diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 91c0b40..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,15 +0,0 @@ -version: "{build}" -platform: x64 - -clone_folder: c:\gopath\src\gopkg.in\src-d\go-billy.v4 - -environment: - GOPATH: c:\gopath - -install: - - set PATH=%GOPATH%\bin;c:\go\bin;%PATH% - - go version - - go get -v -t ./... - -build_script: - - go test -v ./...