1
0
mirror of https://github.com/kairos-io/kcrypt.git synced 2025-05-13 19:04:58 +00:00
kcrypt/.github/workflows/unit-tests.yml
Itxaka a2f7baa39a
Use go1.19 as minimun version and test matrix ()
* 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>
2024-04-19 14:12:20 +00:00

31 lines
756 B
YAML

name: Unit tests
on:
push:
branches:
- master
pull_request:
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
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Install Ginkgo
run: go install github.com/onsi/ginkgo/v2/ginkgo@v2.5.0
- name: Run tests
run: |
ginkgo run ./...