From dcd9b72e5ab1ca1f7fb8e70e32a2e21c322e4559 Mon Sep 17 00:00:00 2001 From: Sawyer Burnett Date: Mon, 18 Mar 2024 09:57:50 -0700 Subject: [PATCH] remove node 16 and clear warnings for unit-test.yml --- .github/workflows/unit-test.yml | 28 ++++++---------------------- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 831fd047..3a43cf56 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -8,34 +8,18 @@ on: workflow_dispatch: jobs: - matrix: - name: 'Node ${{ matrix.node }}' + unit-test: runs-on: ubuntu-latest - strategy: - matrix: - node: [16, 18] steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node }} - - - uses: pnpm/action-setup@v2 + - uses: actions/checkout@v4 + - 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 - name: Setup pnpm cache + - uses: actions/setup-node@v4 with: - path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: ${{ runner.os }}-pnpm-store- + cache: "pnpm" + node-version: 18 - name: Install dependencies run: pnpm install - - name: Unit Test run: pnpm run test -