From add9bd2b01d1cad45d64496943de5dc827cc3d14 Mon Sep 17 00:00:00 2001 From: nvminhtue Date: Fri, 2 Feb 2024 17:02:32 +0700 Subject: [PATCH] [#181] Remove node 16 out of supporting version --- .github/workflows/lint.yml | 2 +- .github/workflows/publish.yml | 2 +- .github/workflows/test-generated-project.yml | 7 ++----- .github/workflows/test.yml | 9 +++------ 4 files changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f60e0ae3..555a0663 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -15,7 +15,7 @@ jobs: uses: actions/checkout@v3 - name: Setup node and restore cached dependencies - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: '18.x' cache: 'npm' diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 49f58176..0d150e65 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: uses: actions/checkout@v3 - name: Setup Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: '18.x' cache: 'npm' diff --git a/.github/workflows/test-generated-project.yml b/.github/workflows/test-generated-project.yml index 9ab9b85d..bd9a09f4 100644 --- a/.github/workflows/test-generated-project.yml +++ b/.github/workflows/test-generated-project.yml @@ -11,9 +11,6 @@ env: jobs: test: name: Run Tests Generated Project - strategy: - matrix: - node-version: [16.x, 18.x] runs-on: ubuntu-latest steps: @@ -23,12 +20,12 @@ jobs: - name: Setup Node uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version: '18.x' cache: 'npm' - name: Cache Node npm id: cache-nodemodules - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: node_modules key: ${{ runner.os }}-infrastructure-templates-node-${{ hashFiles('**/package-lock.json') }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0c8a3a6c..e0b9a3b7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,9 +7,6 @@ on: jobs: test: name: Run Tests - strategy: - matrix: - node-version: [16.x, 18.x] runs-on: ubuntu-latest steps: @@ -17,14 +14,14 @@ jobs: uses: actions/checkout@v3 - name: Setup Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version: '18.x' cache: 'npm' - name: Cache Node npm id: cache-nodemodules - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: node_modules key: ${{ runner.os }}-infrastructure-templates-node-${{ hashFiles('**/package-lock.json') }}