Skip to content

Commit

Permalink
fix test for detecting cycles in random-ordered job dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Oct 23, 2024
1 parent 57d84da commit 54f7d98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion testdata/err/random_order_cycle_in_needs.out
Original file line number Diff line number Diff line change
@@ -1 +1 @@
test.yaml:4:3: job "a" needs job "e" which does not exist in this workflow [job-needs]
test.yaml:4:3: cyclic dependencies in "needs" job configurations are detected. detected cycle is "a" -> "b" -> "c" -> "d" -> "a" [job-needs]
2 changes: 1 addition & 1 deletion testdata/err/random_order_cycle_in_needs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ on: push
jobs:
# Order of jobs is random
a:
needs: [b, e]
needs: [b]
runs-on: ubuntu-latest
steps:
- run: echo 'a'
Expand Down

0 comments on commit 54f7d98

Please sign in to comment.