Skip to content

Commit

Permalink
fix: use golangci-lint docker image in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
omissis committed Oct 7, 2023
1 parent 08bd7b3 commit d85e8d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/development.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,10 @@ jobs:
go-version: "^1.21.2"
- name: Setup workspace
run: cp go.work.dist go.work
- name: Setup golangci-lint
run: >
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | \
sh -s -- -b /usr/local/bin v1.54.2
- name: Lint Go files
run: ./scripts/lint-golang.sh
uses: docker://golangci/golangci-lint:v1.54.2-alpine
with:
args: ./scripts/lint-golang.sh
- name: Run tests
run: ./scripts/test.sh
- name: Upload coverage to Codecov
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,10 @@ jobs:
go-version: "^1.21.2"
- name: Setup workspace
run: cp go.work.dist go.work
- name: Setup golangci-lint
run: >
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | \
sh -s -- -b /usr/local/bin v1.54.2
- name: Lint Go files
run: ./scripts/lint-golang.sh
uses: docker://golangci/golangci-lint:v1.54.2-alpine
with:
args: ./scripts/lint-golang.sh
- name: Run tests
run: ./scripts/test.sh
- name: Log in to Docker Hub
Expand Down

0 comments on commit d85e8d3

Please sign in to comment.