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