Skip to content

Commit

Permalink
add a lint job and put license check there instead
Browse files Browse the repository at this point in the history
  • Loading branch information
braydonk committed May 3, 2024
1 parent 59edfd6 commit d62fe8c
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,15 @@ on:
pull_request:

jobs:
run-test:

run-lint:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.18', '1.19', '1.20', '1.21' ]
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
go-version: 1.18
cache: true

- name: Install tools
Expand All @@ -39,6 +35,20 @@ jobs:
- name: Check license headers
run: make addlicense_check

run-test:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.18', '1.19', '1.20', '1.21', '1.22' ]
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
cache: true

- name: Go Mod Tidy
run: go mod tidy

Expand Down

0 comments on commit d62fe8c

Please sign in to comment.