Skip to content

Commit

Permalink
fix: replace golangci-lint action with a more generic one to be able …
Browse files Browse the repository at this point in the history
…to run scripts
  • Loading branch information
omissis committed Oct 5, 2023
1 parent 4be8c74 commit c714711
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/development.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@ 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
uses: golangci/golangci-lint-action@v3
with:
version: v1.54.2
args: -v --color=always --config=.rules/.golangci.yml ./...
run: ./scripts/lint-golang.sh
- name: Run tests
run: ./scripts/test.sh
- name: Upload coverage to Codecov
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@ 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
uses: golangci/golangci-lint-action@v3
with:
version: v1.54.2
args: -v --color=always --config=.rules/.golangci.yml ./...
run: ./scripts/lint-golang.sh
- name: Run tests
run: ./scripts/test.sh
- name: Log in to Docker Hub
Expand Down

0 comments on commit c714711

Please sign in to comment.