Bump to go 1.23 and bring the kairos linter workflow (#379)

This commit is contained in:
Itxaka
2024-09-26 15:17:17 +02:00
committed by GitHub
parent 0d0f06dbb3
commit ee1f9a7820
5 changed files with 37 additions and 74 deletions

View File

@@ -10,35 +10,19 @@ concurrency:
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: earthly/actions-setup@v1
with:
version: 0.8.12
- name: Run Lint checks
run: earthly +golint
unit-tests:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ "1.22-bookworm" ]
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: earthly/actions-setup@v1
- name: Setup Go environment
uses: actions/setup-go@v5.0.2
with:
version: 0.8.12
- name: Build
run: earthly +build --GO_VERSION=${{ matrix.go-version }}
go-version-file: go.mod
- name: Run tests
run: earthly +test --GO_VERSION=${{ matrix.go-version }}
run: go run github.com/onsi/ginkgo/v2/ginkgo --race --covermode=atomic --coverprofile=coverage.out -p -r ./...
- name: Codecov
uses: codecov/codecov-action@v4
with: