From 87f03e0af70ed9ed364c69bc4572b66bb3752837 Mon Sep 17 00:00:00 2001 From: Ayushman Chhabra <14110965+ayushmanchhabra@users.noreply.github.com> Date: Tue, 25 Jun 2024 23:43:04 +0530 Subject: [PATCH 1/3] chore(ci): upgrade github actions --- .github/workflows/node.js.yml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 60f0b82..6e8207f 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -1,6 +1,3 @@ -# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions - name: Build Status on: @@ -11,18 +8,15 @@ on: jobs: build: - - runs-on: ${{ matrix.os }} - strategy: matrix: os: [macos-latest, windows-latest, ubuntu-latest] node-version: [8.3.0, 18.x] - + runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4.1.7 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v4.0.2 with: node-version: ${{ matrix.node-version }} @@ -41,4 +35,3 @@ jobs: # ESLint 7+ uses `} catch {` which isn't supported in Node 8 - if: ${{ matrix.node-version == '18.x' }} run: npm run lint - From 67bcf73b465b1e03f5389f94db67bff71c8b1850 Mon Sep 17 00:00:00 2001 From: Ayushman Chhabra <14110965+ayushmanchhabra@users.noreply.github.com> Date: Tue, 25 Jun 2024 23:45:46 +0530 Subject: [PATCH 2/3] chore(ci): disable concurrent jobs --- .github/workflows/node.js.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 6e8207f..2b22401 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -6,6 +6,10 @@ on: pull_request: branches: [ main ] +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true + jobs: build: strategy: From abf7485bd6f3bc33739a258c65519b224fa12622 Mon Sep 17 00:00:00 2001 From: Ayushman Chhabra <14110965+ayushmanchhabra@users.noreply.github.com> Date: Tue, 25 Jun 2024 23:49:32 +0530 Subject: [PATCH 3/3] chore(ci): switch from setup node to volta action --- .github/workflows/node.js.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 2b22401..271a1b3 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -19,15 +19,13 @@ jobs: runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4.1.7 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4.0.2 - with: - node-version: ${{ matrix.node-version }} + - uses: volta-cli/action@v4.1.1 + - run: volta pin node@${{ matrix.node-version }} # Node 8.3.0 comes with npm 5.3.0. # npm 5.7.1 is the first version to support npm ci - if: ${{ matrix.node-version != '18.x' }} - run: npm install -g npm@5.7.1 + run: volta pin npm@5.7.1 - run: npm install - run: npm run e2e