Use go1.19 as minimun version and test matrix (#95)

* Use go1.19 as minimun version and test matrix

Signed-off-by: Itxaka <itxaka@kairos.io>

* Replace ginkgo/gomega with 1.19 versions

So we can run tests under go 1.19

Signed-off-by: Itxaka <itxaka@kairos.io>

* Fix lint

Signed-off-by: Itxaka <itxaka@kairos.io>

---------

Signed-off-by: Itxaka <itxaka@kairos.io>
This commit is contained in:
Itxaka
2024-04-19 14:12:20 +00:00
committed by GitHub
parent 8fd1f6cb77
commit a2f7baa39a
3 changed files with 44 additions and 74 deletions

View File

@@ -7,6 +7,10 @@ on:
jobs:
unit-tests:
strategy:
matrix:
# Match this version to the maintained FIPS version in packages at https://github.com/kairos-io/packages/blob/main/packages/toolchain-go/collection.yaml#L63
go-version: ["1.19.10", "1.20", "1.21"]
runs-on: ubuntu-latest
steps:
- name: Checkout code
@@ -16,7 +20,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '^1.20'
go-version: ${{ matrix.go-version }}
- name: Install Ginkgo
run: go install github.com/onsi/ginkgo/v2/ginkgo@v2.5.0