Skip to content

Commit

Permalink
separate lint and test jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
mluffman committed Dec 21, 2023
1 parent 5a9d514 commit 2dad983
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Lint

on:
pull_request:
branches: [ "master" ]

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: Lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.54
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Unit tests, lint, and build
name: Unit tests

on:
pull_request:
Expand All @@ -21,11 +21,11 @@ jobs:
- name: Download mockery
run: go install github.com/vektra/mockery/[email protected]

- name: Download pre-commit
run: pip install pre-commit

- name: Generate
run: go generate -v ./...

- name: Test
run: go test -v ./...

- name: Lint
run: pre-commit run --all-files

0 comments on commit 2dad983

Please sign in to comment.