-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
crates/gh-workflow/src/snapshots/gh_workflow__generate__tests__add_needs_job.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
source: crates/gh-workflow/src/generate.rs | ||
expression: workflow.to_string().unwrap() | ||
snapshot_kind: text | ||
--- | ||
name: All jobs were added to workflow | ||
jobs: | ||
base_job: | ||
name: Base job | ||
runs-on: ubuntu-latest | ||
with-dependency-1: | ||
needs: | ||
- base_job | ||
name: The first job that has dependency for base_job | ||
runs-on: ubuntu-latest | ||
with-dependency-2: | ||
needs: | ||
- base_job | ||
name: The second job that has dependency for base_job | ||
runs-on: ubuntu-latest |
20 changes: 20 additions & 0 deletions
20
crates/gh-workflow/src/snapshots/gh_workflow__generate__tests__missing_add_job.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
source: crates/gh-workflow/src/generate.rs | ||
expression: workflow.to_string().unwrap() | ||
snapshot_kind: text | ||
--- | ||
name: base_job was not added to workflow jobs | ||
jobs: | ||
job-0: | ||
name: Base job | ||
runs-on: ubuntu-latest | ||
with-dependency-1: | ||
needs: | ||
- job-0 | ||
name: The first job that has dependency for base_job | ||
runs-on: ubuntu-latest | ||
with-dependency-2: | ||
needs: | ||
- job-0 | ||
name: The second job that has dependency for base_job | ||
runs-on: ubuntu-latest |