-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Node.js support to 18-20 from 12-16, dependencies, documentati…
…on, some practices (#19) * Update name of repo for repository, homepage, bugs * Remove unused Grunt task 'ci' * Update sinon to 16 from 1.7, to fix circular dependency warnings involving fakeServer * Use github: syntax for package.repository * Update copyright range end to 2023 from 2019 * Update year in examples to 2023 from 2013 * Remove $ from example code blocks of type shell * Use const instead of var * Upgrade native actions (checkout, setup-node); remove repetition present in comments, names * Run on pull_request regardless of target branch * Run on push to main as well as master, pending rename * Fix Node.js version format (use N not N.x); also use array syntax * Add Node.js 18, 20; drop 12 * Replace deprecated 'es3: false' with 'esversion: 6' * Set minimum package.engines.node to 14 * Upgrade Grunt and plugins to latest * Upgrade mockery to 2.1 from 1.4 (soft major) * Update Mocha to 10.2 from 8.4 * Use const instead of var for some constants * Retire recommendation for grunt-cli installed globally * Make small changes to readme for clarity * Separate tool usage code blocks to allow them to be copied individually * Clarify inferred support policy * Recommend npm >=8 and update lockfile using this version (also upgrades lockfileVersion to 2 from 1) * Prepare version 4's details for README and MIGRATION; sunset <= 3 * Remove support symbols since their validity is affected by the passage of time * Fix build badge and info link * Rename job 'checkout_and_test' to 'test' * Recommend npm version 8 or above, or equivalent, in migration guide for v4 * End support for post-LTS Node.js versions 14 and 16 * Reverse change to support policy section pending discussion
- Loading branch information
1 parent
01ded41
commit 31bed98
Showing
8 changed files
with
3,066 additions
and
528 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,20 @@ | ||
# This workflow will do a clean install of node dependencies, build the source code and run tests. | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | ||
|
||
name: Build and lint | ||
|
||
on: | ||
push: | ||
branches: # Run actions when code is committed to these branches | ||
branches: | ||
- master | ||
- main | ||
pull_request: | ||
branches: # Run actions when a PR is pushed based on one of these branches | ||
- master | ||
|
||
jobs: | ||
checkout_and_test: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
include: | ||
- node-version: 12.x | ||
- node-version: 14.x | ||
- node-version: 16.x | ||
|
||
node-version: [18, 20] | ||
steps: | ||
- name: Checkout code from ${{ github.repository }} | ||
uses: actions/checkout@v2 | ||
- name: Setup node | ||
uses: actions/setup-node@v2 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Run tests | ||
run: npm test | ||
- run: npm ci | ||
- run: npm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
# Migration Guide | ||
|
||
Pa11y's API changes between major versions. This is a guide to help you make the switch when this happens. | ||
This package's API and/or supported set of environments changes between major versions. This is a guide to help you update your project to use a new major version. | ||
|
||
## Migrating from 2.x to 3.x | ||
## Migrating to 4 from 3 | ||
|
||
Pa11y Webservice Client 3.x only supports Node.js v12 and higher, you'll need to upgrade to be able to use it. | ||
1. Upgrade to Node.js 18 or above. | ||
|
||
## Migrating from 1.x to 2.x | ||
## Migrating to 3 from 2 | ||
|
||
Pa11y Webservice Client 2.x only supports Node.js v8.0.0 and higher, you'll need to upgrade to be able to use it. | ||
1. Upgrade to Node.js 12 or above. | ||
|
||
## Migrating to 2 from 1 | ||
|
||
1. Upgrade to Node.js 8 or above. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.