Skip to content

Commit 7ef169f

Browse files
authored
Merge pull request #131 from thaJeztah/add_gha
CI: use GitHub Actions
2 parents c9a8a2d + a432708 commit 7ef169f

File tree

3 files changed

+23
-10
lines changed

3 files changed

+23
-10
lines changed

.github/workflows/ci.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- master
7+
pull_request:
8+
branches:
9+
- main
10+
- master
11+
jobs:
12+
test:
13+
strategy:
14+
matrix:
15+
platform: [ubuntu-20.04]
16+
runs-on: ${{ matrix.platform }}
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v2
20+
- name: test
21+
run: make test

.travis.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
REPO_NAME = go-plugins-helpers
44
REPO_OWNER = docker
55
PKG_NAME = github.com/${REPO_OWNER}/${REPO_NAME}
6-
IMAGE = golang:1.13
6+
IMAGE = golang:1.16
77

88
all: test
99

@@ -12,7 +12,7 @@ test-local: install-deps fmt lint vet
1212
@go test -v ./...
1313

1414
test:
15-
@docker run -v ${shell pwd}:/go/src/${PKG_NAME} -w /go/src/${PKG_NAME} ${IMAGE} make test-local
15+
@docker run -e GO111MODULE=off -v ${shell pwd}:/go/src/${PKG_NAME} -w /go/src/${PKG_NAME} ${IMAGE} make test-local
1616

1717
install-deps:
1818
@echo "+ $@"

0 commit comments

Comments
 (0)