Skip to content

Commit

Permalink
use golangci-lint container instead of downloading explicit version
Browse files Browse the repository at this point in the history
  • Loading branch information
DrDaveD committed Aug 16, 2021
1 parent 1e9e507 commit 035b564
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,18 @@ jobs:
build_and_test:
name: build_and_test
runs-on: ubuntu-20.04
# this selects the latest minor version in the vX.Y golangci-lint series
container: golangci/golangci-lint:v1.41
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node

- name: Install npm
run: npm install

- name: Check for markdown Lint
run: |
sudo npm install -g markdownlint-cli
npm install -g markdownlint-cli
markdownlint .

- name: Set up Go
Expand All @@ -32,9 +38,8 @@ jobs:
- name: Build Source
run: ./build.sh

- name: Check for Lint
- name: Run lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.41.0
$(go env GOPATH)/bin/golangci-lint run

- name: Run Tests
Expand Down

0 comments on commit 035b564

Please sign in to comment.