Skip to content

Commit

Permalink
go 1.15 + unit test + lint/sync workflows (#1186)
Browse files Browse the repository at this point in the history
Signed-off-by: Wilson E. Husin <whusin@vmware.com>
  • Loading branch information
wilsonehusin authored Nov 6, 2020
1 parent 3e0f8ed commit 185c859
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 15 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI Lint and Sync
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint run
uses: golangci/golangci-lint-action@v2
with:
version: v1.31
go-mod-tidy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: 1.15
- name: go mod tidy
run: |
./scripts/ci/check_go_modules.sh
sync-readme:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: sync readme
run: |
./scripts/ci/check_readme_in_sync.sh
15 changes: 15 additions & 0 deletions .github/workflows/ci-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: CI Test
on: [push, pull_request]
jobs:
unit-test-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: 1.15
- name: make local-test
env:
VERBOSE: true
run: |
make local-test
12 changes: 0 additions & 12 deletions .github/workflows/golangci-lint.yaml

This file was deleted.

6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,16 @@ ifneq ($(VERBOSE),)
VERBOSE_FLAG = -v
endif
BUILDMNT = /go/src/$(GOTARGET)
BUILD_IMAGE ?= golang:1.14-stretch
AMD_IMAGE ?= debian:stretch-slim
BUILD_IMAGE ?= golang:1.15-buster
AMD_IMAGE ?= debian:buster-slim
ARM_IMAGE ?= arm64v8/ubuntu:16.04
WIN_IMAGE ?= mcr.microsoft.com/windows/servercore:1809

TESTARGS ?= $(VERBOSE_FLAG) -timeout 60s
COVERARGS ?= -coverprofile=coverage.txt -covermode=atomic
TEST_PKGS ?= $(GOTARGET)/cmd/... $(GOTARGET)/pkg/...
TEST_CMD = go test $(TESTARGS)
TEST = $(TEST_CMD) $(COVERARGS) $(TEST_PKGS)
TEST = GODEBUG=x509ignoreCN=0 $(TEST_CMD) $(COVERARGS) $(TEST_PKGS)

INT_TEST_PKGS ?= $(GOTARGET)/test/integration/...
INT_TEST= $(TEST_CMD) $(INT_TEST_PKGS) -tags=integration
Expand Down

0 comments on commit 185c859

Please sign in to comment.