From d00c7d5cdcdc51dc6303d6cd5550424bbd8d5f04 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sun, 29 Oct 2023 11:58:54 +0100 Subject: [PATCH] Update the GitHub Actions workflows to use the current Node.js LTS version The active LTS version is now based on Node.js version 20, hence let's update the relevant workflows to use that one instead; see https://en.wikipedia.org/wiki/Node.js#Releases Given that we still support Node.js version 18, i.e. the maintenance LTS version, in the PDF.js library we'll keep testing both versions in GitHub Actions to prevent regressions. --- .github/workflows/ci.yml | 8 ++++++-- .github/workflows/publish_website.yml | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4df97d497..6cc016009 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,16 +8,20 @@ jobs: name: Test runs-on: ubuntu-latest + strategy: + matrix: + node-version: [18, lts/*] + steps: - name: Checkout repository uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Use Node.js 18 LTS + - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: - node-version: '18' + node-version: ${{ matrix.node-version }} - name: Install Gulp run: npm install -g gulp-cli diff --git a/.github/workflows/publish_website.yml b/.github/workflows/publish_website.yml index 3ca560915..2f6d5bdc3 100644 --- a/.github/workflows/publish_website.yml +++ b/.github/workflows/publish_website.yml @@ -11,16 +11,20 @@ jobs: name: Build runs-on: ubuntu-latest + strategy: + matrix: + node-version: [lts/*] + steps: - name: Checkout repository uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Use Node.js 18 LTS + - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: - node-version: '18' + node-version: ${{ matrix.node-version }} - name: Install Gulp run: npm install -g gulp-cli