aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/workflows/test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/workflows/test.go')
-rw-r--r--internal/workflows/test.go45
1 files changed, 3 insertions, 42 deletions
diff --git a/internal/workflows/test.go b/internal/workflows/test.go
index 6cea7842..5ca795c6 100644
--- a/internal/workflows/test.go
+++ b/internal/workflows/test.go
@@ -33,10 +33,9 @@ var _ = (&Workflow{
Name: "Sandbox",
On: "rosa",
- Needs: []string{"dist"},
Steps: []Step{
checkout,
- download,
+ dist,
install,
newTestsuite("hakurei/testsuite/sandbox", "unshare -n "),
},
@@ -46,10 +45,9 @@ var _ = (&Workflow{
Name: "Sandbox (with race instrument)",
On: "rosa",
- Needs: []string{"dist-race"},
Steps: []Step{
checkout,
- _download,
+ _dist,
install,
newTestsuite("hakurei/testsuite/sandbox", "unshare -n "),
},
@@ -59,10 +57,9 @@ var _ = (&Workflow{
Name: "ShareFS",
On: "rosa",
- Needs: []string{"dist"},
Steps: []Step{
checkout,
- download,
+ dist,
install,
{
@@ -83,41 +80,5 @@ var _ = (&Workflow{
newUploadArtifact("test output", "fs_mark"),
},
}},
-
- {"dist", Job{
- Name: "Create distribution",
- On: "rosa",
-
- Outputs: []KV[string]{
- {"rev", "${{ steps.dist.outputs.rev }}"},
- },
-
- Steps: []Step{
- checkout,
- newCIRequest("distribution", "dist -o result", "dist"),
- newUploadArtifact(
- "distribution",
- "dist-${{ steps.dist.outputs.rev }}",
- ),
- },
- }},
-
- {"dist-race", Job{
- Name: "Create distribution (with race instrument)",
- On: "rosa",
-
- Outputs: []KV[string]{
- {"rev", "${{ steps.dist.outputs.rev }}"},
- },
-
- Steps: []Step{
- checkout,
- newCIRequest("distribution", "race -o result", "dist"),
- newUploadArtifact(
- "distribution",
- "dist-${{ steps.dist.outputs.rev }}-race",
- ),
- },
- }},
},
}).mustWriteFile("test")