From eaf5a8612140ee2a86f5b068820fc9680b5d9082 Mon Sep 17 00:00:00 2001 From: Elliot DeNolf Date: Tue, 16 Apr 2024 11:35:00 -0400 Subject: [PATCH] ci: enforce node version for all jobs --- .github/workflows/main.yml | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 86aa77d556..9069bf150e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,6 +10,9 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +env: + NODE_VERSION: 18.20.2 + jobs: changes: runs-on: ubuntu-latest @@ -57,10 +60,10 @@ jobs: - name: tune linux network run: sudo ethtool -K eth0 tx off rx off - - name: Use Node.js 18 + - name: Setup Node@${{ env.NODE_VERSION }} uses: actions/setup-node@v4 with: - node-version: 18 + node-version: ${{ env.NODE_VERSION }} - name: Install pnpm uses: pnpm/action-setup@v3 @@ -102,10 +105,10 @@ jobs: - name: tune linux network run: sudo ethtool -K eth0 tx off rx off - - name: Use Node.js 18 + - name: Setup Node@${{ env.NODE_VERSION }} uses: actions/setup-node@v4 with: - node-version: 18 + node-version: ${{ env.NODE_VERSION }} - name: Install pnpm uses: pnpm/action-setup@v3 @@ -151,10 +154,10 @@ jobs: - name: tune linux network run: sudo ethtool -K eth0 tx off rx off - - name: Use Node.js 18 + - name: Setup Node@${{ env.NODE_VERSION }} uses: actions/setup-node@v4 with: - node-version: 18 + node-version: ${{ env.NODE_VERSION }} - name: Install pnpm uses: pnpm/action-setup@v3 @@ -254,10 +257,10 @@ jobs: - name: tune linux network run: sudo ethtool -K eth0 tx off rx off - - name: Use Node.js 18 + - name: Setup Node@${{ env.NODE_VERSION }} uses: actions/setup-node@v4 with: - node-version: 18 + node-version: ${{ env.NODE_VERSION }} - name: Install pnpm uses: pnpm/action-setup@v3 @@ -295,10 +298,10 @@ jobs: - name: tune linux network run: sudo ethtool -K eth0 tx off rx off - - name: Use Node.js 18 + - name: Setup Node@${{ env.NODE_VERSION }} uses: actions/setup-node@v4 with: - node-version: 18 + node-version: ${{ env.NODE_VERSION }} - name: Install pnpm uses: pnpm/action-setup@v3 @@ -336,10 +339,10 @@ jobs: - name: tune linux network run: sudo ethtool -K eth0 tx off rx off - - name: Use Node.js 18 + - name: Setup Node@${{ env.NODE_VERSION }} uses: actions/setup-node@v4 with: - node-version: 18 + node-version: ${{ env.NODE_VERSION }} - name: Start MongoDB uses: supercharge/mongodb-github-action@1.10.0