Skip to content

Commit

Permalink
fix(ci): revert the golangci-lint step to download+install via curl+sh
Browse files Browse the repository at this point in the history
  • Loading branch information
omissis committed Oct 7, 2023
1 parent e165a6f commit 0f1bd0e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/development.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ jobs:
go-version: "^1.21.2"
- name: Setup workspace
run: cp go.work.dist go.work
- name: Download golangci-lint installer
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh -o /tmp/install-golangci-lint.sh
- name: Install golangci-lint
run: sh /tmp/install-golangci-lint.sh -b /usr/local/bin v1.54.2
- name: Lint Go files
uses: docker://golangci/golangci-lint:v1.54.2-alpine
with:
args: ./scripts/lint-golang.sh
run: ./scripts/lint-golang.sh
- name: Run tests
run: ./scripts/test.sh
- name: Upload coverage to Codecov
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: tag
name: release

on:
push:
Expand All @@ -24,18 +24,14 @@ jobs:
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
- name: Fetch all tags
run: git fetch --force --tags
- name: Cleanup pre-release tags
run: git tag -l | grep -E "v[0-9]+.[0-9]+.[0-9]+-(alpha|beta|rc).[0-9]+" | xargs git tag -d
- name: Setup Golang
uses: actions/setup-go@v4
with:
go-version: "^1.21.2"
- name: Setup workspace
run: cp go.work.dist go.work
- name: Lint Go files
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
if: ${{ !contains(github.ref_name, '-') }}
uses: docker/login-action@v3
Expand Down

0 comments on commit 0f1bd0e

Please sign in to comment.