summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorMatthieu MOREL <mmorel-35@users.noreply.github.com>2022-01-04 15:19:28 +0100
committerGitHub <noreply@github.com>2022-01-04 16:19:28 +0200
commitd5a3b3f5ec879ac596d70036551a3e716b52656d (patch)
treed1cc6e73f91d4b75c73de34bec17c4cda551fbad /.github
parentc57e41c029ba45b0ebb3fdd9474e202cdef92767 (diff)
downloadredis-d5a3b3f5ec879ac596d70036551a3e716b52656d.tar.gz
Setup dependabot for github-actions and codespell (#9857)
This sets up dependabot to check weekly updates for pip and github-actions dependencies. If it finds an update it will create a PR to update the dependency. More information can be found here It includes the update of: * vmactions/freebsd-vm from 0.1.4 to 0.1.5 * codespell from 2.0.0 to 2.1.0 Also includes spelling fixes found by the latest version of codespell. Includes a dedicated .codespell folder so dependabot can read a requirements.txt file and every files dedicated to codespell can be grouped in the same place Co-Authored-By: Matthieu MOREL <mmorel-35@users.noreply.github.com> Co-Authored-By: MOREL Matthieu <matthieu.morel@cnp.fr>
Diffstat (limited to '.github')
-rw-r--r--.github/.codespellrc5
-rw-r--r--.github/dependabot.yml15
-rw-r--r--.github/wordlist.txt16
-rw-r--r--.github/workflows/daily.yml2
-rw-r--r--.github/workflows/spell-check.yml11
5 files changed, 25 insertions, 24 deletions
diff --git a/.github/.codespellrc b/.github/.codespellrc
deleted file mode 100644
index 6cc43b26e..000000000
--- a/.github/.codespellrc
+++ /dev/null
@@ -1,5 +0,0 @@
-[codespell]
-quiet-level = 2
-count =
-skip = ./deps,./src/crc16_slottable.h,tmp*,./.git,./lcov-html
-ignore-words = ./.github/wordlist.txt
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 000000000..f00019d2e
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,15 @@
+# To get started with Dependabot version updates, you'll need to specify which
+# package ecosystems to update and where the package manifests are located.
+# Please see the documentation for all configuration options:
+# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
+
+version: 2
+updates:
+ - package-ecosystem: github-actions
+ directory: /
+ schedule:
+ interval: weekly
+ - package-ecosystem: pip
+ directory: /.codespell
+ schedule:
+ interval: weekly
diff --git a/.github/wordlist.txt b/.github/wordlist.txt
deleted file mode 100644
index 88fde5909..000000000
--- a/.github/wordlist.txt
+++ /dev/null
@@ -1,16 +0,0 @@
-ake
-bale
-fle
-fo
-gameboy
-mutli
-nd
-nees
-oll
-optin
-ot
-smove
-te
-tre
-cancelability
-ist \ No newline at end of file
diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml
index 5cc7fbd22..88e31f52a 100644
--- a/.github/workflows/daily.yml
+++ b/.github/workflows/daily.yml
@@ -521,7 +521,7 @@ jobs:
repository: ${{ env.GITHUB_REPOSITORY }}
ref: ${{ env.GITHUB_HEAD_REF }}
- name: test
- uses: vmactions/freebsd-vm@v0.1.4
+ uses: vmactions/freebsd-vm@v0.1.5
with:
usesh: true
sync: rsync
diff --git a/.github/workflows/spell-check.yml b/.github/workflows/spell-check.yml
index 7aaa9ffa8..ac9cf2532 100644
--- a/.github/workflows/spell-check.yml
+++ b/.github/workflows/spell-check.yml
@@ -18,8 +18,15 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2
+ - name: pip cache
+ uses: actions/cache@v2
+ with:
+ path: ~/.cache/pip
+ key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
+ restore-keys: ${{ runner.os }}-pip-
+
- name: Install prerequisites
- run: sudo pip install codespell==2.0.0
+ run: sudo pip install -r ./.codespell/requirements.txt
- name: Spell check
- run: codespell --config=./.github/.codespellrc
+ run: codespell --config=./.codespell/.codespellrc