From 73a6bacee135c3ca68112b12678ae137b788775f Mon Sep 17 00:00:00 2001 From: James Ives Date: Sun, 17 Jul 2022 09:49:43 -0400 Subject: [PATCH] test: Fixes test case --- __tests__/git.test.ts | 4 ++-- src/git.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/__tests__/git.test.ts b/__tests__/git.test.ts index 5a33bdd5..3905cc94 100644 --- a/__tests__/git.test.ts +++ b/__tests__/git.test.ts @@ -463,11 +463,11 @@ describe('git', () => { name: 'asd', email: 'as@cat' }, - isTest: TestFlag.NONE + isTest: TestFlag.HAS_CHANGED_FILES }) const response = await deploy(action) - expect(execute).toBeCalledTimes(13) // normally 11 runs, +2 of the tag + expect(execute).toBeCalledTimes(16) expect(response).toBe(Status.SUCCESS) }) }) diff --git a/src/git.ts b/src/git.ts index 5f6a73d6..8625a132 100644 --- a/src/git.ts +++ b/src/git.ts @@ -317,6 +317,7 @@ export async function deploy(action: ActionInterface): Promise { info(`Changes committed to the ${action.branch} branch… đŸ“¦`) if (action.tag) { + console.log('ADDING TAG!!!') info(`Adding '${action.tag}' tag to the commit…`) await execute( `git tag ${action.tag}`,