Skip to content

Commit

Permalink
Merge pull request #284 from cloudflare/nicky/ci-improvements
Browse files Browse the repository at this point in the history
update Actions to only run lint once to avoid duplicated warnings
  • Loading branch information
nickysemenza authored Mar 5, 2021
2 parents 1c05176 + db3637d commit 1c0fca1
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 33 deletions.
40 changes: 22 additions & 18 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,34 @@ name: Go Test

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:

test:
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.11", "1.12", "1.13", "1.14", "1.15"]
go: ["1.12", "1.13", "1.14", "1.15", "1.16"]
env:
GOFLAGS: "-mod=vendor"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}

- name: Install golint
run: go install ./vendor/golang.org/x/lint/golint
- name: Go Lint
run: make vet lint
- name: Go Test
run: make test-nohsm test-trust
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Go Test
run: make test-nohsm test-trust
lint:
runs-on: ubuntu-latest
env:
GOFLAGS: "-mod=vendor"
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: "1.15"
- name: Install golint
run: go install ./vendor/golang.org/x/lint/golint
- name: Go Lint
run: make gokeyless vet lint
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
# Go Keyless
[![Build Status](https://travis-ci.org/cloudflare/gokeyless.png?branch=master)](https://travis-ci.org/cloudflare/gokeyless)
[![GoDoc](https://godoc.org/github.com/cloudflare/gokeyless?status.png)](https://godoc.org/github.com/cloudflare/gokeyless)
[![Go Test](https://github.com/cloudflare/gokeyless/actions/workflows/go.yml/badge.svg)](https://github.com/cloudflare/gokeyless/actions/workflows/go.yml)
[![GoDoc](https://pkg.go.dev/badge/github.com/cloudflare/gokeyless)](https://pkg.go.dev/github.com/cloudflare/gokeyless)

<!-- markdown-toc start - Don't edit this section. Run M-x markdown-toc-refresh-toc -->
**Table of Contents**

- [Go Keyless](#go-keyless)
- [Keyless SSL implementation in Go](#keyless-ssl-implementation-in-go)
- [Protocol](#protocol)
- [Key Management](#key-management)
- [Hardware Security Modules](#hardware-security-modules)
- [Keyless SSL implementation in Go](#keyless-ssl-implementation-in-go)
- [Protocol](#protocol)
- [Key Management](#key-management)
- [Hardware Security Modules](#hardware-security-modules)
- [Deploying](#deploying)
- [Installing](#installing)
- [Package Installation](#package-installation)
- [Source Installation](#source-installation)
- [Running](#running)
- [Testing](#testing)
- [License](#license)
- [Installing](#installing)
- [Package Installation](#package-installation)
- [Source Installation](#source-installation)
- [Running](#running)
- [Testing](#testing)
- [License](#license)

<!-- markdown-toc end -->

Expand Down
7 changes: 4 additions & 3 deletions protocol/protocol_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1c0fca1

Please sign in to comment.