Skip to content
Permalink
Browse files

Use golangci-lint and uprade to actions/checkout@v2

  • Loading branch information
dunglas committed Jan 16, 2020
1 parent d0b0a9e commit 8c5fd73d200448289796dbfd06701b5da8e9ac76
Showing with 10 additions and 43 deletions.
  1. +1 −1 .github/workflows/cd.yml
  2. +9 −42 .github/workflows/ci.yml
@@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v2
- name: Install Go
uses: actions/setup-go@v1
with:
@@ -9,49 +9,16 @@ env:
GO111MODULE: 'on'

jobs:
vet:
name: Vet (Go ${{ matrix.go }})
lint:
name: Lint
runs-on: ubuntu-latest
container:
image: golang:${{ matrix.go }}-alpine
strategy:
matrix:
go:
- '1.13'
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install system packages
run: |
apk add \
git \
- name: Install project dependencies
run: go get
- name: Vet
run: go vet

format:
name: Format (Go ${{ matrix.go }})
runs-on: ubuntu-latest
container:
image: golang:${{ matrix.go }}-alpine
strategy:
matrix:
go:
- '1.13'
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install system packages
run: |
apk add \
git \
- name: Install project dependencies
run: go get
- name: Format
run: gofmt -e -d *.go
- name: Check out code
uses: actions/checkout@v2
- name: Lint Go Code
uses: docker://golangci/golangci-lint:latest
with:
args: golangci-lint run ./...

test:
name: Test (Go ${{ matrix.go }})
@@ -65,7 +32,7 @@ jobs:
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v2
- name: Install system packages
run: |
apk add \

0 comments on commit 8c5fd73

Please sign in to comment.
You can’t perform that action at this time.