diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 1b58518..f611546 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -214,6 +214,12 @@ jobs: throw new Error("Field value is not correct") } + const items = await actions.getAllItems("${{ steps.copy-project.outputs.id }}") + + if (items.length !== 2) { + throw new Error("Expected 2 items") + } + # - name: Archive Item # uses: ./archive-item/ # id: archive-item diff --git a/__tests__/completed-by.test.ts b/__tests__/completed-by.test.ts index af8605c..96e777b 100644 --- a/__tests__/completed-by.test.ts +++ b/__tests__/completed-by.test.ts @@ -134,6 +134,7 @@ describe('completedByAction', () => { { id: itemId, content: { + __typename: 'DraftIssue', id: 'content-id', body: 'This is the item body', title: 'Item Title' @@ -164,6 +165,7 @@ describe('completedByAction', () => { { id: itemId, content: { + __typename: 'DraftIssue', id: 'content-id', body: `Completed by ${itemUrl}`, title: 'Item Title' @@ -199,6 +201,7 @@ describe('completedByAction', () => { { id: itemId, content: { + __typename: 'DraftIssue', id: 'content-id', body: `Completed by ${itemUrl}`, title: 'Item Title' @@ -232,6 +235,7 @@ describe('completedByAction', () => { { id: itemId, content: { + __typename: 'DraftIssue', id: 'content-id', body: ` Completed by ${itemUrl1} @@ -272,6 +276,7 @@ describe('completedByAction', () => { { id: itemId, content: { + __typename: 'DraftIssue', id: 'content-id', body: `Completed by ${itemUrl}`, title: 'Item Title' diff --git a/__tests__/copy-project.test.ts b/__tests__/copy-project.test.ts index 9a9c226..1f37500 100644 --- a/__tests__/copy-project.test.ts +++ b/__tests__/copy-project.test.ts @@ -232,6 +232,7 @@ describe('copyProjectAction', () => { { id: 'item-id', content: { + __typename: 'DraftIssue', id: 'content-id', body: 'This is the item body', title: 'Item Title' @@ -264,6 +265,7 @@ describe('copyProjectAction', () => { { id: itemId, content: { + __typename: 'DraftIssue', id: contentId, body: 'This is the item {{ foo }}', title: 'Item {{ foo }}' @@ -301,6 +303,7 @@ describe('copyProjectAction', () => { { id: itemId, content: { + __typename: 'DraftIssue', id: 'content-id', body: `