diff --git a/.github/workflows/development.yaml b/.github/workflows/development.yaml index d78c3838..8f23973a 100644 --- a/.github/workflows/development.yaml +++ b/.github/workflows/development.yaml @@ -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 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 96b30b09..fe87c99a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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