mirror of
https://github.com/kairos-io/immucore.git
synced 2025-09-25 14:24:32 +00:00
Bump to go 1.23 and bring the kairos linter workflow (#379)
This commit is contained in:
24
.github/workflows/unit-tests.yaml
vendored
24
.github/workflows/unit-tests.yaml
vendored
@@ -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:
|
||||
|
Reference in New Issue
Block a user