Skip to content

Commit

Permalink
Update golangci-lint (99designs#2103)
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Coffman <steve@khanacademy.org>
  • Loading branch information
StevenACoffman authored and Chris Pride committed Apr 18, 2022
1 parent 05d4008 commit add6004
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 20 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,35 @@
name: Integration
on: [push, pull_request]

env:
GO_VERSION: 1.16

jobs:
integration:
runs-on: ubuntu-latest
timeout-minutes: 3
container: golang:1.16-alpine
container: golang:${{ env.GO_VERSION }}-alpine
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: apk add --no-cache --no-progress nodejs npm git bash
- run: go mod download
- run: cd integration ; npm install
- run: .github/workflows/check-integration

federation:
runs-on: ubuntu-latest
container: golang:1.16-alpine
container: golang:${{ env.GO_VERSION }}-alpine
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: apk add --no-cache --no-progress nodejs npm git bash
- run: go mod download
- run: cd _examples/federation ; npm install
- run: .github/workflows/check-federation

init:
runs-on: ubuntu-latest
container: golang:1.17-alpine
container: golang:${{ env.GO_VERSION }}-alpine
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: apk add --no-cache --no-progress alpine-sdk bash
- run: .github/workflows/check-init
32 changes: 21 additions & 11 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@
name: Lint
on: [push, pull_request]

env:
GO_VERSION: 1.16

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with: { go-version: 1.16 }
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- run: go mod download
- run: .github/workflows/check-fmt
- run: .github/workflows/check-generate

coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with: { go-version: 1.16 }
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- run: go mod download
- run: .github/workflows/check-coverage
env:
Expand All @@ -26,10 +31,15 @@ jobs:
golangci-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with: { go-version: 1.16 }
- uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
uses: golangci/golangci-lint-action@v3.1.0
with:
version: v1.44.2
version: latest
# skip cache because of flaky behaviors
skip-build-cache: true
skip-pkg-cache: true
10 changes: 7 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
name: Test
on: [push, pull_request]


env:
GO_VERSION: 1.16

jobs:
test:
strategy:
matrix:
go: [1.16]
go: [${{ env.GO_VERSION }}]
os: [ubuntu-latest, windows-latest]

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- run: go mod download && go test -race ./...
Expand Down

0 comments on commit add6004

Please sign in to comment.