From 3b997279478b67f9e535ae9af2f673fef7ad3ec3 Mon Sep 17 00:00:00 2001 From: snowiow Date: Wed, 3 Jan 2024 09:02:39 +0100 Subject: [PATCH 1/2] use node 20 --- .github/workflows/ci-checks.yml | 4 ++-- .github/workflows/publish.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci-checks.yml b/.github/workflows/ci-checks.yml index 6a065eda..807a1da3 100644 --- a/.github/workflows/ci-checks.yml +++ b/.github/workflows/ci-checks.yml @@ -11,10 +11,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - - name: Use node.js 16.x + - name: Use node.js 20.x uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 - name: NPM Install run: npm ci - name: Check Format diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5ba1c318..7bb49b45 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -12,10 +12,10 @@ jobs: uses: actions/checkout@v4 with: ref: ${{ github.event.release.tag_name }} - - name: Use node.js 16.x + - name: Use node.js 20.x uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 - name: NPM Install run: npm ci - name: Check Format From 56b10a9a1b3f709d54c2730c5b65bba74b78481e Mon Sep 17 00:00:00 2001 From: snowiow Date: Wed, 3 Jan 2024 09:07:00 +0100 Subject: [PATCH 2/2] fix tests owner is now an enum --- action.yml | 2 +- test/codebuild.test.ts | 32 ++++++++++++++++---------------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/action.yml b/action.yml index e7ca820e..94595e05 100644 --- a/action.yml +++ b/action.yml @@ -13,7 +13,7 @@ inputs: required: false default: false runs: - using: 'node16' + using: 'node20' main: 'dist/index.js' branding: icon: 'cloud' diff --git a/test/codebuild.test.ts b/test/codebuild.test.ts index 6030030f..db709bed 100644 --- a/test/codebuild.test.ts +++ b/test/codebuild.test.ts @@ -6,9 +6,9 @@ describe('getCodeBuildsFromActions', () => { { name: 'nothing matches', actionTypeId: { - category: 'SomeCategory', + category: 'Source', provider: 'SomeProvider', - owner: 'SomeOwner', + owner: 'AWS', version: '1.0', }, }, @@ -17,7 +17,7 @@ describe('getCodeBuildsFromActions', () => { actionTypeId: { category: 'Build', provider: 'SomeProvider', - owner: 'SomeOwner', + owner: 'AWS', version: '1.0', }, }, @@ -26,7 +26,7 @@ describe('getCodeBuildsFromActions', () => { actionTypeId: { category: 'Build', provider: 'CodeBuild', - owner: 'SomeOwner', + owner: 'AWS', version: '1.0', }, configuration: { @@ -38,7 +38,7 @@ describe('getCodeBuildsFromActions', () => { actionTypeId: { category: 'Build', provider: 'CodeBuild', - owner: 'SomeOwner', + owner: 'AWS', version: '1.0', }, }, @@ -57,9 +57,9 @@ describe('getCodeBuildsFromStages', () => { { name: 'nothing matches', actionTypeId: { - category: 'SomeCategory', + category: 'Source', provider: 'SomeProvider', - owner: 'SomeOwner', + owner: 'AWS', version: '1.0', }, }, @@ -68,7 +68,7 @@ describe('getCodeBuildsFromStages', () => { actionTypeId: { category: 'Build', provider: 'SomeProvider', - owner: 'SomeOwner', + owner: 'AWS', version: '1.0', }, }, @@ -77,7 +77,7 @@ describe('getCodeBuildsFromStages', () => { actionTypeId: { category: 'Build', provider: 'CodeBuild', - owner: 'SomeOwner', + owner: 'AWS', version: '1.0', }, configuration: { @@ -89,7 +89,7 @@ describe('getCodeBuildsFromStages', () => { actionTypeId: { category: 'Build', provider: 'CodeBuild', - owner: 'SomeOwner', + owner: 'AWS', version: '1.0', }, }, @@ -103,7 +103,7 @@ describe('getCodeBuildsFromStages', () => { actionTypeId: { category: 'Build', provider: 'CodeBuild', - owner: 'SomeOwner', + owner: 'AWS', version: '1.0', }, configuration: { @@ -113,9 +113,9 @@ describe('getCodeBuildsFromStages', () => { { name: 'nothing matches', actionTypeId: { - category: 'SomeCategory', + category: 'Source', provider: 'SomeProvider', - owner: 'SomeOwner', + owner: 'AWS', version: '1.0', }, }, @@ -124,7 +124,7 @@ describe('getCodeBuildsFromStages', () => { actionTypeId: { category: 'Build', provider: 'SomeProvider', - owner: 'SomeOwner', + owner: 'AWS', version: '1.0', }, }, @@ -133,7 +133,7 @@ describe('getCodeBuildsFromStages', () => { actionTypeId: { category: 'Build', provider: 'CodeBuild', - owner: 'SomeOwner', + owner: 'AWS', version: '1.0', }, configuration: { @@ -145,7 +145,7 @@ describe('getCodeBuildsFromStages', () => { actionTypeId: { category: 'Build', provider: 'CodeBuild', - owner: 'SomeOwner', + owner: 'AWS', version: '1.0', }, },