mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
Removes the log
This commit is contained in:
parent
1ada96b8f7
commit
f57432925b
@ -3,7 +3,7 @@ process.env['INPUT_FOLDER'] = 'build'
|
||||
process.env['GITHUB_SHA'] = '123'
|
||||
|
||||
import {mkdirP, rmRF} from '@actions/io'
|
||||
import {action} from '../src/constants'
|
||||
import {action, Status} from '../src/constants'
|
||||
import {execute} from '../src/execute'
|
||||
import {deploy, generateBranch, init, switchToBaseBranch} from '../src/git'
|
||||
|
||||
@ -338,11 +338,12 @@ describe('git', () => {
|
||||
}
|
||||
})
|
||||
|
||||
await deploy(action)
|
||||
const response = await deploy(action)
|
||||
|
||||
// Includes the call to generateBranch
|
||||
expect(execute).toBeCalledTimes(11)
|
||||
expect(rmRF).toBeCalledTimes(1)
|
||||
expect(response).toBe(Status.SUCCESS)
|
||||
})
|
||||
|
||||
it('should execute commands with single commit toggled', async () => {
|
||||
@ -437,9 +438,10 @@ describe('git', () => {
|
||||
isTest: false // Setting this env variable to false means there will never be anything to commit and the action will exit early.
|
||||
})
|
||||
|
||||
await deploy(action)
|
||||
const response = await deploy(action)
|
||||
expect(execute).toBeCalledTimes(12)
|
||||
expect(rmRF).toBeCalledTimes(1)
|
||||
expect(response).toBe(Status.SKIPPED)
|
||||
})
|
||||
|
||||
it('should throw an error if one of the required parameters is not available', async () => {
|
||||
|
@ -30,7 +30,6 @@ export default async function run(
|
||||
status = Status.FAILED
|
||||
setFailed(error.message)
|
||||
} finally {
|
||||
console.log(status)
|
||||
info(
|
||||
`${
|
||||
status === Status.FAILED
|
||||
|
Loading…
Reference in New Issue
Block a user