mirror of
https://github.com/softprops/action-gh-release.git
synced 2025-05-11 02:44:20 +00:00
Update config tests and README
This commit is contained in:
parent
4c0e20a554
commit
a9615586fe
2 changed files with 37 additions and 0 deletions
|
@ -52,6 +52,7 @@ describe("util", () => {
|
|||
input_target_commitish: undefined,
|
||||
input_discussion_category_name: undefined,
|
||||
input_generate_release_notes: false,
|
||||
input_make_latest: "true",
|
||||
})
|
||||
);
|
||||
});
|
||||
|
@ -72,6 +73,7 @@ describe("util", () => {
|
|||
input_target_commitish: undefined,
|
||||
input_discussion_category_name: undefined,
|
||||
input_generate_release_notes: false,
|
||||
input_make_latest: "true",
|
||||
})
|
||||
);
|
||||
});
|
||||
|
@ -92,6 +94,7 @@ describe("util", () => {
|
|||
input_target_commitish: undefined,
|
||||
input_discussion_category_name: undefined,
|
||||
input_generate_release_notes: false,
|
||||
input_make_latest: "true",
|
||||
})
|
||||
);
|
||||
});
|
||||
|
@ -125,6 +128,7 @@ describe("util", () => {
|
|||
input_target_commitish: undefined,
|
||||
input_discussion_category_name: undefined,
|
||||
input_generate_release_notes: false,
|
||||
input_make_latest: "true"
|
||||
}
|
||||
);
|
||||
});
|
||||
|
@ -150,6 +154,7 @@ describe("util", () => {
|
|||
input_target_commitish: "affa18ef97bc9db20076945705aba8c516139abd",
|
||||
input_discussion_category_name: undefined,
|
||||
input_generate_release_notes: false,
|
||||
input_make_latest: "true"
|
||||
}
|
||||
);
|
||||
});
|
||||
|
@ -174,6 +179,7 @@ describe("util", () => {
|
|||
input_target_commitish: undefined,
|
||||
input_discussion_category_name: "releases",
|
||||
input_generate_release_notes: false,
|
||||
input_make_latest: "true"
|
||||
}
|
||||
);
|
||||
});
|
||||
|
@ -199,6 +205,7 @@ describe("util", () => {
|
|||
input_target_commitish: undefined,
|
||||
input_discussion_category_name: undefined,
|
||||
input_generate_release_notes: true,
|
||||
input_make_latest: "true"
|
||||
}
|
||||
);
|
||||
});
|
||||
|
@ -227,6 +234,7 @@ describe("util", () => {
|
|||
input_target_commitish: undefined,
|
||||
input_discussion_category_name: undefined,
|
||||
input_generate_release_notes: false,
|
||||
input_make_latest: "true"
|
||||
}
|
||||
);
|
||||
});
|
||||
|
@ -253,6 +261,7 @@ describe("util", () => {
|
|||
input_target_commitish: undefined,
|
||||
input_discussion_category_name: undefined,
|
||||
input_generate_release_notes: false,
|
||||
input_make_latest: "true"
|
||||
}
|
||||
);
|
||||
});
|
||||
|
@ -278,9 +287,35 @@ describe("util", () => {
|
|||
input_target_commitish: undefined,
|
||||
input_discussion_category_name: undefined,
|
||||
input_generate_release_notes: false,
|
||||
input_make_latest: "true"
|
||||
}
|
||||
);
|
||||
});
|
||||
it('parses basic config where make_latest is passed', () => {
|
||||
assert.deepStrictEqual(
|
||||
parseConfig({
|
||||
INPUT_MAKE_LATEST: "false",
|
||||
}),
|
||||
{
|
||||
github_ref: "",
|
||||
github_repository: "",
|
||||
github_token: "",
|
||||
input_append_body: false,
|
||||
input_body: undefined,
|
||||
input_body_path: undefined,
|
||||
input_draft: undefined,
|
||||
input_prerelease: undefined,
|
||||
input_files: [],
|
||||
input_name: undefined,
|
||||
input_tag_name: undefined,
|
||||
input_fail_on_unmatched_files: false,
|
||||
input_target_commitish: undefined,
|
||||
input_discussion_category_name: undefined,
|
||||
input_generate_release_notes: false,
|
||||
input_make_latest: "false"
|
||||
}
|
||||
);
|
||||
})
|
||||
it("parses basic config with append_body", () => {
|
||||
assert.deepStrictEqual(
|
||||
parseConfig({
|
||||
|
@ -302,6 +337,7 @@ describe("util", () => {
|
|||
input_target_commitish: undefined,
|
||||
input_discussion_category_name: undefined,
|
||||
input_generate_release_notes: false,
|
||||
input_make_latest: "true"
|
||||
}
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue