mirror of
https://github.com/redis/redis.git
synced 2026-05-28 04:02:46 -04:00
### Problem Node.js 20 actions are deprecated. The warning in CI like that: > Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/ ### Changed Upgrade actions to their latest stable versions: 1. `actions/upload-artifact` v4 => v7 2. `actions/checkout` v4 => v6 3. `actions/checkout` main => v6 4. `actions/create-github-app-token` v1 => v3 5. `github/codeql-action` v3 => v4 6. `actions/cache` v4 => v5 7. `actions/setup-node` v4 => v6
32 lines
857 B
YAML
32 lines
857 B
YAML
# A CI action that using codespell to check spell.
|
|
# .github/.codespellrc is a config file.
|
|
# .github/wordlist.txt is a list of words that will ignore word checks.
|
|
# More details please check the following link:
|
|
# https://github.com/codespell-project/codespell
|
|
name: Spellcheck
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
name: Spellcheck
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
|
|
- name: pip cache
|
|
uses: actions/cache@v5
|
|
with:
|
|
path: ~/.cache/pip
|
|
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
|
|
restore-keys: ${{ runner.os }}-pip-
|
|
|
|
- name: Install prerequisites
|
|
run: sudo pip install -r ./.codespell/requirements.txt
|
|
|
|
- name: Spell check
|
|
run: codespell --config=./.codespell/.codespellrc
|