From ce242fd464082340d8ee44cee5acf3263fde17e2 Mon Sep 17 00:00:00 2001 From: Chris Manson Date: Fri, 27 Oct 2023 15:06:48 +0100 Subject: [PATCH] fix CI to remove volta --- .github/workflows/ci.yml | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index caeb46d..ed7faff 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,26 +16,16 @@ jobs: strategy: matrix: - node: ['16', '18'] + node: ['16', '18', '20'] os: [ubuntu-latest, macOS-latest, windows-latest] steps: - - uses: actions/checkout@v2 - - uses: volta-cli/action@v1 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} + cache: yarn - - uses: actions/cache@v2 - id: yarn-cache - with: - path: '**/node_modules' - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- - - name: yarn --frozen-lockfile - if: steps.yarn-cache.outputs.cache-hit != 'true' - run: yarn --frozen-lockfile - - name: yarn prepare - if: steps.yarn-cache.outputs.cache-hit == 'true' - run: yarn prepare + - run: yarn --frozen-lockfile + - run: yarn prepare - run: yarn lint - run: yarn test