Skip to content

Commit

Permalink
Merge pull request #3 from ifireball/go-lint
Browse files Browse the repository at this point in the history
Add a GitHub action to run Go Lint
  • Loading branch information
ifireball authored Mar 3, 2024
2 parents fd6d125 + c7203f0 commit d6e3a4f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/go-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: Go Lint

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'

- name: Run Lint
run: make lint
2 changes: 1 addition & 1 deletion test/e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ var _ = Describe("controller", Ordered, func() {

By("installing CRDs")
cmd = exec.Command("make", "install")
_, err = utils.Run(cmd)
_, _ = utils.Run(cmd)

By("deploying the controller-manager")
cmd = exec.Command("make", "deploy", fmt.Sprintf("IMG=%s", projectimage))
Expand Down

0 comments on commit d6e3a4f

Please sign in to comment.