Fixes #33 Add artifactErrorsFailBuild flag
This commit is contained in:
@@ -18,7 +18,11 @@ describe.skip('Integration Test', () => {
|
||||
|
||||
const inputs = getInputs()
|
||||
const releases = new GithubReleases(inputs, git)
|
||||
const uploader = new GithubArtifactUploader(releases, inputs.replacesArtifacts)
|
||||
const uploader = new GithubArtifactUploader(
|
||||
releases,
|
||||
inputs.artifactErrorsFailBuild,
|
||||
inputs.replacesArtifacts
|
||||
)
|
||||
action = new Action(inputs, releases, uploader)
|
||||
})
|
||||
|
||||
@@ -30,6 +34,7 @@ describe.skip('Integration Test', () => {
|
||||
const MockInputs = jest.fn<Inputs, any>(() => {
|
||||
return {
|
||||
allowUpdates: true,
|
||||
artifactErrorsFailBuild: false,
|
||||
artifacts: artifacts(),
|
||||
createdReleaseBody: "This release was generated by release-action's integration test",
|
||||
createdReleaseName: "Releases Action Integration Test",
|
||||
@@ -47,12 +52,12 @@ describe.skip('Integration Test', () => {
|
||||
})
|
||||
return new MockInputs();
|
||||
}
|
||||
|
||||
|
||||
function artifacts() {
|
||||
const globber = new FileArtifactGlobber()
|
||||
const artifactPath = path.join(__dirname, 'Integration.test.ts')
|
||||
const artifactString = `~/Desktop/test.txt,blarg.tx, ${artifactPath}`
|
||||
return globber.globArtifactString(artifactString, "raw")
|
||||
return globber.globArtifactString(artifactString, "raw", false)
|
||||
}
|
||||
|
||||
function getToken(): string {
|
||||
|
||||
Reference in New Issue
Block a user