Skip to content

Commit ebbf699

Browse files
authored
test(fips): add fips unit tests (#15706)
* 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
1 parent 383ff3f commit ebbf699

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,22 @@ jobs:
5353
CGO_ENABLED: "0"
5454
run: go test -v ./...
5555

56+
test-fips:
57+
runs-on: ubuntu-latest
58+
steps:
59+
- uses: actions/checkout@v4
60+
- uses: actions/setup-go@v5
61+
with:
62+
# TODO switch to go.mod once we update to 1.24+
63+
go-version: 1.24
64+
cache: true
65+
- env:
66+
CGO_ENABLED: "0"
67+
GOFIPS140: "latest"
68+
GODEBUG: "fips140=only"
69+
# TODO remove tags once cockroachdb/swiss works on 1.24+
70+
run: go test -v -tags=untested_go_version,requirefips ./...
71+
5672
system-test:
5773
runs-on: ubuntu-latest
5874
steps:

0 commit comments

Comments
 (0)