Skip to content

Commit

Permalink
workflow: run unit tests without cgo too
Browse files Browse the repository at this point in the history
Now that we support building images without cgo also test it.
  • Loading branch information
mvo5 committed Dec 20, 2024
1 parent 8657895 commit 8bc3938
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ jobs:
- name: Run unit tests
run: go test -v -race ./...

- name: Run unit tests without CGO
# keep tags in sync with BUILDTAGS_CROSS in https://github.com/containers/podman/blob/2981262215f563461d449b9841741339f4d9a894/Makefile#L85
run: CGO_ENABLED=0 go test -v -tags "containers_image_openpgp exclude_graphdriver_btrfs exclude_graphdriver_devicemapper exclude_graphdriver_overlay" ./...

- name: Run depsolver tests with force-dnf to make sure it's not skipped for any reason
run: go test -v -race ./pkg/dnfjson/... -force-dnf

Expand Down

0 comments on commit 8bc3938

Please sign in to comment.