From 0f6ef1e985bcc1e4463a800dcc5f9cf003a902d3 Mon Sep 17 00:00:00 2001 From: Alexandre Philibeaux Date: Wed, 10 Nov 2021 13:55:36 +0100 Subject: [PATCH] chore(node): upgrade node 17 ci --- .github/workflows/ci.yml | 14 ++++++++++---- .github/workflows/pull_request_title.yml | 2 +- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5f5348ff1..57b84d6c3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,31 +10,37 @@ jobs: - name: Use Node.js uses: actions/setup-node@v2.4.1 with: - node-version: 14 + node-version: 17 cache: 'yarn' - run: yarn - run: yarn run lint test: runs-on: ubuntu-20.04 + strategy: + matrix: + node: [ '14', '16', '17' ] steps: - uses: actions/checkout@v2.3.5 - name: Use Node.js uses: actions/setup-node@v2.4.1 with: - node-version: 14 + node-version: ${{ matrix.node }} cache: 'yarn' - run: yarn - run: yarn run test:coverage - uses: codecov/codecov-action@v2.1.0 build: runs-on: ubuntu-20.04 + strategy: + matrix: + node: [ '14', '16', '17' ] needs: [lint, test] steps: - uses: actions/checkout@v2.3.5 - name: Use Node.js uses: actions/setup-node@v2.4.1 with: - node-version: 14 + node-version: ${{ matrix.node }} - run: yarn --pure-lockfile - run: yarn run build deploy: @@ -57,7 +63,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v2.4.1 with: - node-version: 14 + node-version: 17 - run: yarn --pure-lockfile - run: yarn run build - run: echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > .npmrc diff --git a/.github/workflows/pull_request_title.yml b/.github/workflows/pull_request_title.yml index 3f746f534..38a3f79d9 100644 --- a/.github/workflows/pull_request_title.yml +++ b/.github/workflows/pull_request_title.yml @@ -12,7 +12,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v2.4.1 with: - node-version: 16 + node-version: 17 cache: 'yarn' - run: yarn - run: echo '${{ github.event.pull_request.title }}' | yarn run commitlint