diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 8cc1b9af6..69eea7d09 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -71,7 +71,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - node-version: [12.x, 14.x] + node-version: [14.x] os: [ubuntu-latest] steps: - uses: actions/checkout@v2 @@ -98,3 +98,37 @@ jobs: - name: Test run: npm run test:node + + # Note this is a duplicate of the matrix (so we have 2 1x1 matrices). Up for improvement... + node-tests-windows: + name: Node tests + runs-on: ${{ matrix.os }} + strategy: + matrix: + node-version: [12.x] + os: [windows-latest] + steps: + - uses: actions/checkout@v2 + + - name: Setup Node ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + + - name: Get yarn cache directory + id: yarn-cache-dir + run: | + echo "::set-output name=dir::$(yarn cache dir)" + - uses: actions/cache@v2 + id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) + with: + path: ${{ steps.yarn-cache-dir.outputs.dir }} + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn- + + - name: Install Dependencies + run: yarn --frozen-lockfile + + - name: Test + run: npm run test:node