ci: Run tests on all platforms in the Docker image

This commit is contained in:
Quentin Gliech
2021-12-10 11:22:04 +01:00
parent abefa3f662
commit ee80e67133
2 changed files with 33 additions and 2 deletions

View File

@@ -12,6 +12,11 @@ target "debug" {
target = "debug"
}
target "test" {
inherits = ["default"]
target = "test"
}
target "release" {
inherits = ["default"]
platforms = [
@@ -22,7 +27,7 @@ target "release" {
}
// This is what is baked by GitHub Actions
group "gha" { targets = ["gha-regular", "gha-debug"] }
group "gha" { targets = ["gha-regular", "gha-debug", "gha-test"] }
target "gha-base" {
inherits = ["release"]
@@ -37,3 +42,7 @@ target "gha-regular" {
target "gha-debug" {
inherits = ["gha-base", "debug", "docker-metadata-action-debug"]
}
target "gha-test" {
inherits = ["gha-base", "test"]
}