Skip to content

Commit

Permalink
test(fips): add fips unit tests (#15706) (#15722)
Browse files Browse the repository at this point in the history
* test(fips): add fips unit tests

run 1.24 with fips mode enabled
extra tag is required until cockroachdb/swiss is fixed

* Update ci.yml

* Update ci.yml

* Update ci.yml

(cherry picked from commit ebbf699)

Co-authored-by: kruskall <[email protected]>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
mergify[bot] and kruskall authored Feb 13, 2025
1 parent 0a9e903 commit 5fcb8f4
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,22 @@ jobs:
CGO_ENABLED: "0"
run: go test -v ./...

test-fips:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
# TODO switch to go.mod once we update to 1.24+
go-version: 1.24
cache: true
- env:
CGO_ENABLED: "0"
GOFIPS140: "latest"
GODEBUG: "fips140=only"
# TODO remove tags once cockroachdb/swiss works on 1.24+
run: go test -v -tags=untested_go_version,requirefips ./...

system-test:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 5fcb8f4

Please sign in to comment.