You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Remove Grunt and JSHint
* Require `npm@10`
* Publish with Node 18
* Introduce `eslint` and `pa11y-lint-config@3`
* Remove comments where they repeat item name
* Update `package.description` in common with webservice's description of itself
* Fix linting errors and warnings
* Update readme to reflect renaming of `err` to `error`
* In the workflow, update `npm` and lint using commands that exist
* Replace mentions of Grunt in readme
* Describe how to test the workflows locally
* Upgrade to `sinon@17` from `16`
* Rename `LICENSE.txt` to `LICENSE` to match our other repos
* Introduce the standard `.editorconfig`
* Replace `npm` fixing to `10` with `lockfile-version` fixing to `2`
* Set `.nvmrc` to current minimum, `18`
* Pull out the linting step
* Rename publishing job to `publish` from `build`
* Update support policy to agreed version
* Update support table
* Remove duplicated advice about opening issue
* Fix link to license
// task = object representing the requested result, or null if an error occurred
128
128
});
129
129
```
@@ -136,40 +136,64 @@ If you'd like to contribute code, get started by cloning the repo and running `n
136
136
137
137
```sh
138
138
# Lint your contribution
139
-
grunt lint
139
+
npm run lint
140
140
```
141
141
142
142
```sh
143
143
# Test your contribution
144
-
grunt test
144
+
npm test
145
+
```
146
+
147
+
### Testing the GitHub Actions workflows
148
+
149
+
This project's GitHub Actions workflows can be tested locally using [nektos/act](https://github.com/nektos/act), which can be installed with Homebrew:
150
+
151
+
```sh
152
+
brew install act
153
+
```
154
+
155
+
To validate the syntax of a workflow:
156
+
157
+
```sh
158
+
# Validate the publishing workflow, by triggering a 'release' event
159
+
act --dryrun release
145
160
```
146
161
147
162
```sh
148
-
#Lint and test with a single command
149
-
grunt
163
+
#Validate the testing workflow
164
+
act --dryrun push
150
165
```
151
166
167
+
To run the testing workflow locally:
168
+
169
+
```sh
170
+
# Run the testing workflow, with Node.js 18 only
171
+
act push --matrix node-version:18
172
+
```
173
+
174
+
Add `--verbose` for more output.
175
+
152
176
## Support and Migration
153
177
154
-
Major versions are normally supported for 6 months after their last minor release. This means that patch-level changes will be added and bugs will be fixed. The table below outlines the end-of-support dates for major versions, and the last minor release for that version.
178
+
> [!NOTE]
179
+
> We maintain a [migration guide](MIGRATION.md) to help you migrate between major versions.
155
180
156
-
We also maintain a [migration guide](MIGRATION.md)to help you migrate.
181
+
When we release a new major version we will continue to support the previous major version for 6 months. This support will be limited to fixes for critical bugs and security issues. If you're opening an issue related to this project, please mention the specific version that the issue affects.
157
182
158
-
|:grey_question:| Major Version | Last Release | Node.js Versions | Support End Date |
The following table lists the major versions available and, for each previous major version, its end-of-support date, and its final minor version released.
163
184
164
-
If you're opening issues related to these, please mention the version that the issue relates to.
185
+
| Major version | Final minor version | Node.js support | Support end date |
0 commit comments