From 72f94beafe54ef7f9d0ea35027a908fca50dd991 Mon Sep 17 00:00:00 2001 From: Chris Bateman Date: Sun, 18 Feb 2024 01:08:45 +0000 Subject: [PATCH 1/3] Update workflows + add Node versions --- .github/workflows/release.yml | 8 ++++---- .github/workflows/static-analysis.yml | 13 ++++++++----- .github/workflows/unit-test.yml | 10 +++++----- 3 files changed, 17 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 73c5145..353a1dd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,19 +18,19 @@ jobs: pull-requests: write steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: 18 - - uses: pnpm/action-setup@v2 + - uses: pnpm/action-setup@v3 with: version: 8.2.0 - name: Get pnpm store directory id: pnpm-cache shell: bash run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT - - uses: actions/cache@v3 + - uses: actions/cache@v4 name: Setup pnpm cache with: path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index df01631..8d20313 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -11,20 +11,23 @@ jobs: static-analysis: name: 'Lint and Type-check' runs-on: ubuntu-latest + strategy: + matrix: + node-version: [18, 20] steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: ${{ matrix.node-version }} - - uses: pnpm/action-setup@v2 + - uses: pnpm/action-setup@v3 with: version: 8.2.0 - name: Get pnpm store directory id: pnpm-cache shell: bash run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT - - uses: actions/cache@v3 + - uses: actions/cache@v4 name: Setup pnpm cache with: path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 8284cee..6becac7 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -13,21 +13,21 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node: [16, 18] + node: [16, 18, 20] steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} - - uses: pnpm/action-setup@v2 + - uses: pnpm/action-setup@v3 with: version: 8.2.0 - name: Get pnpm store directory id: pnpm-cache shell: bash run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT - - uses: actions/cache@v3 + - uses: actions/cache@v4 name: Setup pnpm cache with: path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} From 0d233f0850a5365e41b0b4dc23d46fbf34b3616f Mon Sep 17 00:00:00 2001 From: Chris Bateman Date: Mon, 19 Feb 2024 08:49:15 +1100 Subject: [PATCH 2/3] Update static-analysis.yml Updated to only 18 --- .github/workflows/static-analysis.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 8d20313..e4d5139 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -11,14 +11,12 @@ jobs: static-analysis: name: 'Lint and Type-check' runs-on: ubuntu-latest - strategy: - matrix: - node-version: [18, 20] + steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version: 18 - uses: pnpm/action-setup@v3 with: From 417af2fe1e09e999aee974a89ab0354aa926dc35 Mon Sep 17 00:00:00 2001 From: Chris Bateman Date: Mon, 19 Feb 2024 08:50:14 +1100 Subject: [PATCH 3/3] Update unit-test.yml Update to node 18 --- .github/workflows/unit-test.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 6becac7..55a7776 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -9,16 +9,14 @@ on: jobs: matrix: - name: 'Node ${{ matrix.node }}' + name: 'Node 18' runs-on: ubuntu-latest - strategy: - matrix: - node: [16, 18, 20] + steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node }} + node-version: 18 - uses: pnpm/action-setup@v3 with: