Skip to content

Commit

Permalink
Merge pull request #276 from mattfarina/gha-golanglint-ci
Browse files Browse the repository at this point in the history
Moving linting to GitHub Actions
  • Loading branch information
mattfarina authored Mar 2, 2023
2 parents 25fed77 + cd3c802 commit 16ddd2e
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ steps:
- name: test
image: registry.suse.com/bci/golang:1.19
commands:
- zypper -n install tar gzip
- "curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.51.1;"
- ./scripts/ci
volumes:
- name: docker
Expand Down
7 changes: 7 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,10 @@ updates:
interval: "weekly"
labels:
- "dependencies"
-
package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
labels:
- "dependencies"
38 changes: 38 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: golangci-lint

env:
SETUP_GO_VERSION: '^1.19'

on:
push:
pull_request:
tags:
- v*
branches:
- 'release/*'
- 'master'

jobs:
golangci:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive

- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.SETUP_GO_VERSION }}

- name: Generate Golang
run: |
export PATH=$PATH:/home/runner/go/bin/
- name: golangci-lint
uses: golangci/golangci-lint-action@v3.4.0
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.51

0 comments on commit 16ddd2e

Please sign in to comment.