From 1fdc9d229ac23b982f423d90d939b99202072ad4 Mon Sep 17 00:00:00 2001 From: Scott Brenner Date: Tue, 15 Nov 2022 20:22:52 -0800 Subject: [PATCH] fix: W2531 EOL runtime (nodejs12.x) specified (#236) --- .github/workflows/main.yml | 9 +++++---- examples/template.yml | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f0be37c..2b3e828 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,11 +15,12 @@ jobs: fail-fast: false matrix: os: - - ubuntu-18.04 - ubuntu-20.04 + - ubuntu-22.04 - windows-2019 - windows-2022 - - macos-10.15 + - macos-11 + - macos-12 name: ${{ matrix.os }} runs-on: ${{ matrix.os }} steps: @@ -38,7 +39,7 @@ jobs: - name: Setup Cloud Formation Linter with Specific Version uses: ./ with: - version: "0.53.0" + version: "0.71.1" # Step 5 - name: Print the Cloud Formation Linter Version & run Linter. run: | @@ -50,7 +51,7 @@ jobs: uses: ./ with: command: cfn-lint -t ./examples/template.yml - version: "0.53.0" + version: "0.71.1" # Step 7 ### Testing specifying a version and command - name: Testing with CFN Lint Command diff --git a/examples/template.yml b/examples/template.yml index 90f444b..3365132 100644 --- a/examples/template.yml +++ b/examples/template.yml @@ -60,8 +60,8 @@ Resources: Properties: FunctionName: Fn::Sub: lambda-function-${EnvName} - Description: LambdaFunctioni of nodejs12.x. - Runtime: nodejs12.x + Description: LambdaFunctioni of nodejs16.x. + Runtime: nodejs16.x Code: ZipFile: "exports.handler = function(event, context){\n