support for mem_limit and memswap_limit

This commit is contained in:
Brad Rydzewski
2020-01-17 11:17:14 -08:00
parent 385ce04eec
commit 01bf779338
4 changed files with 38 additions and 24 deletions

View File

@@ -76,7 +76,9 @@ func TestParse(t *testing.T) {
"GOOS": &manifest.Variable{Value: "linux"},
"GOARCH": &manifest.Variable{Value: "arm64"},
},
Failure: "ignore",
MemLimit: manifest.BytesSize(1073741824),
MemSwapLimit: manifest.BytesSize(2147483648),
Failure: "ignore",
When: manifest.Conditions{
Event: manifest.Condition{
Include: []string{"push"},