Skip to content

Commit

Permalink
ci: validate multiple version builds and use golangci-lint-action (#1250
Browse files Browse the repository at this point in the history
)

* ci: validate multiple version builds and use golangci-lint-actio

* Fix lint
  • Loading branch information
nodece authored Jul 14, 2024
1 parent 29f2779 commit 2ff2c2c
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,35 @@ on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.20', '1.21', '1.22' ]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- run: make build

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v5
with:
go-version: '1.20'
- name: Check license header
run: docker run --rm -v $(pwd):/github/workspace ghcr.io/korandoru/hawkeye-native:v3 check
- name: Run golangci-lint
run: make lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.51.2

integration-tests:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ['1.20', '1.21.0', '1.22.0']
go-version: [ '1.20', '1.21', '1.22' ]
steps:
- uses: actions/checkout@v3
- name: clean docker cache
Expand Down

0 comments on commit 2ff2c2c

Please sign in to comment.