Skip to content

Commit

Permalink
Migrate from Travis & AppVeyor to GH Actions (#824)
Browse files Browse the repository at this point in the history
Depends on a fork of actions/setup-go. I can adjust this later once the PR is merged.
  • Loading branch information
fsouza committed Mar 9, 2020
1 parent eacd537 commit e14250f
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 55 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/main.yml
@@ -0,0 +1,54 @@
name: Build
on:
push:
branches:
- master

pull_request:
branches:
- master

jobs:
test:
strategy:
matrix:
go_version:
- 1.13
- 1.14
os:
- macos
- ubuntu
- windows
goarch:
- 386
- amd64
exclude:
- os: macos
goarch: 386

name: test (${{ matrix.os }}/go-${{ matrix.go_version }}/${{ matrix.goarch }})
runs-on: ${{ matrix.os }}-latest
steps:
- uses: fsouza/setup-go@add-gobin
id: go
with:
stable: false
go-version: ${{ matrix.go_version }}

- uses: actions/checkout@master

- run: go mod download

- run: make lint
env:
GOFLAGS: -mod=readonly

- run: make gotest
env:
GOARCH: ${{ matrix.goarch }}
GOPROXY: off

- run: make integration
if: matrix.os != 'macos' && matrix.goarch == 'amd64'
env:
GOFLAGS: -mod=readonly
30 changes: 0 additions & 30 deletions .travis.yml

This file was deleted.

7 changes: 6 additions & 1 deletion Makefile
Expand Up @@ -5,6 +5,11 @@
test \
integration


ifeq "$(strip $(shell go env GOARCH))" "amd64"
RACE_FLAG := -race
endif

all: test

lint:
Expand All @@ -14,7 +19,7 @@ lint:
pretest: lint

gotest:
go test -race -vet all ./...
go test $(RACE_FLAG) -vet all ./...

test: pretest gotest

Expand Down
3 changes: 1 addition & 2 deletions README.md
@@ -1,7 +1,6 @@
# go-dockerclient

[![Travis Build Status](https://travis-ci.com/fsouza/go-dockerclient.svg?branch=master)](https://travis-ci.com/fsouza/go-dockerclient)
[![AppVeyor Build status](https://ci.appveyor.com/api/projects/status/4yusq1f9dqbicobt/branch/master?svg=true)](https://ci.appveyor.com/project/fsouza/go-dockerclient)
[![Build Status](https://github.com/fsouza/go-dockerclient/workflows/Build/badge.svg)](https://github.com/fsouza/go-dockerclient/actions?query=branch:master+workflow:Build)
[![GoDoc](https://img.shields.io/badge/api-Godoc-blue.svg?style=flat-square)](https://pkg.go.dev/github.com/docker/docker/api/types?tab=doc#AuthConfig)

This package presents a client for the Docker remote API. It also provides
Expand Down
22 changes: 0 additions & 22 deletions appveyor.yml

This file was deleted.

0 comments on commit e14250f

Please sign in to comment.