Skip to content

Commit

Permalink
Decouple building and linting (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
kgaughan authored Jun 11, 2023
1 parent 8c0222b commit 7ea8ae4
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 13 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/go.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
---
name: Go
name: Build

on:
push:
branches:
- master
pull_request:
branches:
- master
- push
- pull_request

jobs:

build:
runs-on: ubuntu-latest
steps:
Expand All @@ -21,10 +16,5 @@ jobs:
with:
go-version: 1.18

- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.52.2

- name: Build
run: make
19 changes: 19 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Lint

on:
- push
- pull_request

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

- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.52.2
args: --issues-exit-code=0
only-new-issues: true
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
tags:
- 'v*'

concurrency:
group: releaser
cancel-in-progress: true

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
Expand Down

0 comments on commit 7ea8ae4

Please sign in to comment.