Skip to content

Commit d7b8afb

Browse files
fix: broken tests
1 parent 2e554d1 commit d7b8afb

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

__tests__/config.test.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ describe('getActionDefaultInputs', () => {
3838
expect(getActionDefaultInputs()).toEqual({
3939
'BRANCH_NAME': 'releases/${MAJOR}',
4040
'BUILD_COMMAND': '',
41-
'BUILD_COMMAND_TARGET': 'build,production,prod,package',
42-
'CLEAN_TARGETS': '.[!.]*,__tests__,src,*.js,*.ts,*.json,*.lock,*.yml,*.yaml',
41+
'BUILD_COMMAND_TARGET': 'build,production,prod,package,pack',
42+
'CLEAN_TARGETS': '.[!.]*,__tests__,docs,src,*.js,*.ts,*.json,*.lock,*.yml,*.yaml',
4343
'CLEAN_TEST_TAG': 'false',
4444
'COMMIT_EMAIL': '41898282+github-actions[bot]@users.noreply.github.com',
4545
'COMMIT_MESSAGE': 'feat: build for release',
@@ -63,8 +63,8 @@ describe('getConfig', () => {
6363
'inputs': {
6464
'BRANCH_NAME': 'releases/${MAJOR}',
6565
'BUILD_COMMAND': '',
66-
'BUILD_COMMAND_TARGET': 'build,production,prod,package',
67-
'CLEAN_TARGETS': '.[!.]*,__tests__,src,*.js,*.ts,*.json,*.lock,*.yml,*.yaml',
66+
'BUILD_COMMAND_TARGET': 'build,production,prod,package,pack',
67+
'CLEAN_TARGETS': '.[!.]*,__tests__,docs,src,*.js,*.ts,*.json,*.lock,*.yml,*.yaml',
6868
'CLEAN_TEST_TAG': 'false',
6969
'COMMIT_EMAIL': '41898282+github-actions[bot]@users.noreply.github.com',
7070
'COMMIT_MESSAGE': 'feat: build for release',
@@ -90,8 +90,8 @@ describe('getConfig', () => {
9090
'inputs': {
9191
'BRANCH_NAME': 'releases/${MAJOR}',
9292
'BUILD_COMMAND': '',
93-
'BUILD_COMMAND_TARGET': 'build,production,prod,package',
94-
'CLEAN_TARGETS': '.[!.]*,__tests__,src,*.js,*.ts,*.json,*.lock,*.yml,*.yaml',
93+
'BUILD_COMMAND_TARGET': 'build,production,prod,package,pack',
94+
'CLEAN_TARGETS': '.[!.]*,__tests__,docs,src,*.js,*.ts,*.json,*.lock,*.yml,*.yaml',
9595
'CLEAN_TEST_TAG': 'false',
9696
'COMMIT_EMAIL': '41898282+github-actions[bot]@users.noreply.github.com',
9797
'COMMIT_MESSAGE': 'feat: build for release',
@@ -116,8 +116,8 @@ describe('getConfig', () => {
116116
'inputs': {
117117
'BRANCH_NAME': 'releases/${MAJOR}, gh-actions',
118118
'BUILD_COMMAND': '',
119-
'BUILD_COMMAND_TARGET': 'build,production,prod,package',
120-
'CLEAN_TARGETS': '.[!.]*,__tests__,src,*.js,*.ts,*.json,*.lock,*.yml,*.yaml',
119+
'BUILD_COMMAND_TARGET': 'build,production,prod,package,pack',
120+
'CLEAN_TARGETS': '.[!.]*,__tests__,docs,src,*.js,*.ts,*.json,*.lock,*.yml,*.yaml',
121121
'CLEAN_TEST_TAG': 'false',
122122
'COMMIT_EMAIL': '41898282+github-actions[bot]@users.noreply.github.com',
123123
'COMMIT_MESSAGE': 'feat: build for release',
@@ -142,8 +142,8 @@ describe('getConfig', () => {
142142
'inputs': {
143143
'BRANCH_NAME': 'releases/${MAJOR}',
144144
'BUILD_COMMAND': '',
145-
'BUILD_COMMAND_TARGET': 'build,production,prod,package',
146-
'CLEAN_TARGETS': '.[!.]*,__tests__,src,*.js,*.ts,*.json,*.lock,*.yml,*.yaml',
145+
'BUILD_COMMAND_TARGET': 'build,production,prod,package,pack',
146+
'CLEAN_TARGETS': '.[!.]*,__tests__,docs,src,*.js,*.ts,*.json,*.lock,*.yml,*.yaml',
147147
'CLEAN_TEST_TAG': 'false',
148148
'COMMIT_EMAIL': '41898282+github-actions[bot]@users.noreply.github.com',
149149
'COMMIT_MESSAGE': 'feat: build for release',
@@ -168,8 +168,8 @@ describe('getConfig', () => {
168168
'inputs': {
169169
'BRANCH_NAME': 'releases/${MAJOR}',
170170
'BUILD_COMMAND': '',
171-
'BUILD_COMMAND_TARGET': 'build,production,prod,package',
172-
'CLEAN_TARGETS': '.[!.]*,__tests__,src,*.js,*.ts,*.json,*.lock,*.yml,*.yaml',
171+
'BUILD_COMMAND_TARGET': 'build,production,prod,package,pack',
172+
'CLEAN_TARGETS': '.[!.]*,__tests__,docs,src,*.js,*.ts,*.json,*.lock,*.yml,*.yaml',
173173
'CLEAN_TEST_TAG': 'false',
174174
'COMMIT_EMAIL': '41898282+github-actions[bot]@users.noreply.github.com',
175175
'COMMIT_MESSAGE': 'feat: build for release',

__tests__/index.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ describe('execute', () => {
116116
'rm -rdf *.lock',
117117
'rm -rdf *.yml',
118118
'rm -rdf *.yaml',
119-
'rm -rdf __tests__ src',
119+
'rm -rdf __tests__ docs src',
120120
`mv -f '${cwd}/__tests__/tmp/.work/push/action.yml' '${cwd}/__tests__/tmp/.work/build/action.yml' > /dev/null 2>&1 || :`,
121121
`rsync -rl --exclude '.git' --delete '${cwd}/__tests__/tmp/.work/build/' '${cwd}/__tests__/tmp/.work/push'`,
122122
'git config \'user.name\' \'github-actions[bot]\'',
@@ -183,7 +183,7 @@ describe('execute', () => {
183183
' >> stdout',
184184
'[command]rm -rdf *.yaml',
185185
' >> stdout',
186-
'[command]rm -rdf __tests__ src',
186+
'[command]rm -rdf __tests__ docs src',
187187
' >> stdout',
188188
'::endgroup::',
189189
'::group::Copying <Build Directory> contents to <Push Directory>...',
@@ -272,7 +272,7 @@ describe('execute', () => {
272272
'rm -rdf *.lock',
273273
'rm -rdf *.yml',
274274
'rm -rdf *.yaml',
275-
'rm -rdf __tests__ src',
275+
'rm -rdf __tests__ docs src',
276276
`mv -f '${cwd}/__tests__/tmp/.work/push/action.yml' '${cwd}/__tests__/tmp/.work/build/action.yml' > /dev/null 2>&1 || :`,
277277
`rsync -rl --exclude '.git' --delete '${cwd}/__tests__/tmp/.work/build/' '${cwd}/__tests__/tmp/.work/push'`,
278278
'git config \'user.name\' \'github-actions[bot]\'',
@@ -330,7 +330,7 @@ describe('execute', () => {
330330
'[command]rm -rdf *.lock',
331331
'[command]rm -rdf *.yml',
332332
'[command]rm -rdf *.yaml',
333-
'[command]rm -rdf __tests__ src',
333+
'[command]rm -rdf __tests__ docs src',
334334
'::endgroup::',
335335
'::group::Copying <Build Directory> contents to <Push Directory>...',
336336
'[command]rsync -rl --exclude \'.git\' --delete \'<Build Directory>/\' \'<Push Directory>\'',
@@ -404,7 +404,7 @@ describe('execute', () => {
404404
'rm -rdf *.lock',
405405
'rm -rdf *.yml',
406406
'rm -rdf *.yaml',
407-
'rm -rdf __tests__ src',
407+
'rm -rdf __tests__ docs src',
408408
`mv -f '${cwd}/__tests__/tmp/.work/push/action.yml' '${cwd}/__tests__/tmp/.work/build/action.yml' > /dev/null 2>&1 || :`,
409409
`rsync -rl --exclude '.git' --delete '${cwd}/__tests__/tmp/.work/build/' '${cwd}/__tests__/tmp/.work/push'`,
410410
'git config \'user.name\' \'github-actions[bot]\'',
@@ -463,7 +463,7 @@ describe('execute', () => {
463463
' >> stdout',
464464
'[command]rm -rdf *.yaml',
465465
' >> stdout',
466-
'[command]rm -rdf __tests__ src',
466+
'[command]rm -rdf __tests__ docs src',
467467
' >> stdout',
468468
'::endgroup::',
469469
'::group::Copying <Build Directory> contents to <Push Directory>...',

0 commit comments

Comments
 (0)