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