From 75d9762f41a4012bdc8c147a6c5d72e014a40316 Mon Sep 17 00:00:00 2001 From: John Date: Thu, 5 May 2022 18:44:50 -0500 Subject: [PATCH] Improve github actions CI --- .github/workflows/vscode-test.yaml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/vscode-test.yaml b/.github/workflows/vscode-test.yaml index 3e11b5e..143c952 100644 --- a/.github/workflows/vscode-test.yaml +++ b/.github/workflows/vscode-test.yaml @@ -10,15 +10,22 @@ jobs: build: strategy: matrix: - os: [macos-11, ubuntu-latest, windows-latest] + os: + - macos-11 + - ubuntu-latest + - windows-latest + node_version: + - 16 runs-on: ${{ matrix.os }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install Node.js - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: - node-version: 10.x + node-version: ${{ matrix.node_version }} + cache: 'npm' + cache-dependency-path: '**/package-lock.json' - run: npm ci - run: xvfb-run -a npm test if: runner.os == 'Linux'