Skip to content

Commit 4d51b6f

Browse files
authored
Build: Refer to commits of GitHub Actions, upgrade them
Also, set up automatic Dependabot updates of actions grouped into a single PR as Core does. Ref jquery/jquery#5503 Closes gh-1248
1 parent fa2d5a2 commit 4d51b6f

File tree

4 files changed

+31
-14
lines changed

4 files changed

+31
-14
lines changed

.github/dependabot.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: "/"
5+
schedule:
6+
interval: monthly
7+
8+
# Group all dependabot version update PRs into one
9+
groups:
10+
github-actions:
11+
applies-to: version-updates
12+
patterns:
13+
- "*"

.github/workflows/node.js.yml

+14-12
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
name: Node.js CI
44

55
on:
6-
- push
7-
- pull_request
6+
pull_request:
7+
push:
8+
branches-ignore: "dependabot/**"
89

910
jobs:
1011
build:
@@ -16,13 +17,14 @@ jobs:
1617
node-version: [18.x, 20.x]
1718

1819
steps:
19-
- name: Install xmllint
20-
run: sudo apt-get install -y libxml2-utils
21-
- uses: actions/checkout@v3
22-
- name: Use Node.js ${{ matrix.node-version }}
23-
uses: actions/setup-node@v3
24-
with:
25-
node-version: ${{ matrix.node-version }}
26-
cache: 'npm'
27-
- run: npm ci
28-
- run: npm test
20+
- name: Checkout
21+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
22+
- name: Install xmllint
23+
run: sudo apt-get install -y libxml2-utils
24+
- name: Use Node.js ${{ matrix.node-version }}
25+
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
26+
with:
27+
node-version: ${{ matrix.node-version }}
28+
cache: 'npm'
29+
- run: npm ci
30+
- run: npm test

.github/workflows/spider-check.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ jobs:
2121
# Site address to crawl
2222
MY_SITE: https://api.jquery.com
2323
steps:
24-
- uses: actions/checkout@v4
24+
- name: Checkout
25+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2526

2627
- name: Run hydra-link-checker
2728
run: |

.github/workflows/typesense.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ jobs:
1616
if: ${{ github.repository_owner == 'jquery' }} # skip on forks
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v3
19+
- name: Checkout
20+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2021
- name: Docsearch Scraper
2122
shell: bash
2223
run: |

0 commit comments

Comments
 (0)