From b675d524af62fdeb78e953be96addb819039a8ea Mon Sep 17 00:00:00 2001 From: Jon Ursenbach Date: Fri, 18 Jun 2021 16:44:56 -0700 Subject: [PATCH] ci: updating the ci workflow to use node 12+ --- .github/workflows/ci.yml | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dc9c12fe9..d59220285 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,22 +4,24 @@ on: [push] jobs: build: - runs-on: ubuntu-latest - strategy: matrix: - node-version: [10.x, 12.x] + node-version: [12.x, 14.x, 16.x] steps: - - uses: actions/checkout@v2.3.4 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2.1.5 - with: - node-version: ${{ matrix.node-version }} - - name: npm install and test - run: | - npm ci - npm test - env: - CI: true + - uses: actions/checkout@v2.3.4 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2.1.5 + with: + node-version: ${{ matrix.node-version }} + + - name: Install npm@7 + run: npm install -g npm@7 + + - name: Install deps + run: npm ci + + - name: Run tests + run: npm test