Skip to content

Commit

Permalink
add alltests filter for backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
dkijania committed Oct 6, 2023
1 parent 31dd230 commit c425cb1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion buildkite/src/Pipeline/Filter.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
let Prelude = ../External/Prelude.dhall
let Tag = ./Tag.dhall

let Filter : Type = < FastOnly | Long | LongAndVeryLong | TearDownOnly >
let Filter : Type = < FastOnly | Long | LongAndVeryLong | TearDownOnly | AllTests >

let tags: Filter -> List Tag.Type = \(filter: Filter) ->
merge {
FastOnly = [ Tag.Type.Fast ]
, LongAndVeryLong = [ Tag.Type.Long, Tag.Type.VeryLong ]
, Long = [ Tag.Type.Long ]
, TearDownOnly = [ Tag.Type.TearDown ]
, AllTests = [ Tag.Type.Lint, Tag.Type.Release, Tag.Type.Test ]
} filter

let show: Filter -> Text = \(filter: Filter) ->
Expand All @@ -21,6 +22,7 @@ let show: Filter -> Text = \(filter: Filter) ->
, LongAndVeryLong = "LongAndVeryLong"
, Long = "Long"
, TearDownOnly = "TearDownOnly"
, AllTests = "AllTests"
} filter

in
Expand Down

0 comments on commit c425cb1

Please sign in to comment.