Skip to content

Commit

Permalink
Build: Add Node 18 to matrix, update default to Node 16
Browse files Browse the repository at this point in the history
* Some non-CI jobs were still using a default of Node 10 or 14.

* Fix warning
  "Node.js 12 actions are deprecated. …
   Please update actions/checkout, actions/setup-node, actions/cache"
  • Loading branch information
Krinkle committed Oct 22, 2022
1 parent 49b20d3 commit d5715a8
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 29 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ jobs:
fail-fast: false
matrix:
include:
- name: "Linux: Node 18"
os: ubuntu-20.04
node: 18.x
script: npm run test-nolint

- name: "Linux: Node 16"
# Includes 'firefox', 'chromium', and more.
# https://github.com/actions/virtual-environments/blob/ubuntu20/20220410.2/images/linux/Ubuntu2004-Readme.md
Expand Down Expand Up @@ -38,7 +43,7 @@ jobs:

- name: "Integration"
os: ubuntu-20.04
node: 14.x
node: 16.x
script: npm run test-integration

- name: "Windows: Node 16"
Expand All @@ -57,9 +62,9 @@ jobs:
PUPPETEER_DOWNLOAD_PATH: "${{ github.workspace }}/.puppeteer_download"
FORCE_COLOR: "1"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: actions/cache@v2
- uses: actions/cache@v3
if: ${{ runner.os != 'Windows' }}
with:
path: |
Expand All @@ -68,7 +73,7 @@ jobs:
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}

- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3.5.0
with:
node-version: ${{ matrix.node }}

Expand Down Expand Up @@ -100,17 +105,17 @@ jobs:
env:
PUPPETEER_DOWNLOAD_PATH: "${{ github.workspace }}/.puppeteer_download"
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.npm
${{ github.workspace }}/.puppeteer_download
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
- name: Use Node.js 10
uses: actions/setup-node@v2
- name: Use Node.js 16
uses: actions/setup-node@v3.5.0
with:
node-version: 10.x
node-version: 16.x
- name: Install mozjs
run: |
sudo apt-fast install -y libmozjs-68-dev
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/browsers-full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ jobs:
env:
PUPPETEER_DOWNLOAD_PATH: "${{ github.workspace }}/.puppeteer_download"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: actions/cache@v2
- uses: actions/cache@v3
with:
path: |
~/.npm
${{ github.workspace }}/.puppeteer_download
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}

- name: Use Node.js 10
uses: actions/setup-node@v2
- name: Use Node.js 16
uses: actions/setup-node@v3.5.0
with:
node-version: 10.x
node-version: 16.x

- name: Prepare
run: |
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/browsers-quick.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ jobs:
env:
PUPPETEER_DOWNLOAD_PATH: "${{ github.workspace }}/.puppeteer_download"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: actions/cache@v2
- uses: actions/cache@v3
with:
path: |
~/.npm
${{ github.workspace }}/.puppeteer_download
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}

- name: Use Node.js 14
uses: actions/setup-node@v2
- name: Use Node.js 16
uses: actions/setup-node@v3.5.0
with:
node-version: 14.x
node-version: 16.x

- name: Prepare
run: |
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ jobs:
env:
PUPPETEER_DOWNLOAD_PATH: "${{ github.workspace }}/.puppeteer_download"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: actions/cache@v2
- uses: actions/cache@v3
with:
path: |
~/.npm
${{ github.workspace }}/.puppeteer_download
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}

- name: Use Node.js 14
uses: actions/setup-node@v2
- name: Use Node.js 16
uses: actions/setup-node@v3.5.0
with:
node-version: 14.x
node-version: 16.x

- run: npm ci

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/doc-search.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
if: ${{ github.repository == 'qunitjs/qunit' }} # skip on forks, needs secret
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

# https://github.com/ruby/setup-ruby
- uses: ruby/setup-ruby@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/github-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
DEPLOY_DIR: docs/_site/
DEPLOY_BRANCH: gh-pages
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Prepare branch
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/reproducible.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
if: ${{ github.repository == 'qunitjs/qunit' }} # skip on forks, noisy cron
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Use Node.js 16
uses: actions/setup-node@v2
uses: actions/setup-node@v3.5.0
with:
node-version: 16.x

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/spider-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
if: ${{ github.repository == 'qunitjs/qunit' }} # skip on forks, noisy cron and likely stale main branch
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
repository: qunitjs/hydra-link-checker
ref: v1.0.2
Expand Down

0 comments on commit d5715a8

Please sign in to comment.