Skip to content

Commit 8ce686e

Browse files
committed
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 Ref jquery/api.jquery.com#1248
1 parent 61e425b commit 8ce686e

File tree

2 files changed

+20
-14
lines changed

2 files changed

+20
-14
lines changed

Diff for: .github/dependabot.yml

+7
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,10 @@ updates:
44
directory: "/"
55
schedule:
66
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+
- "*"

Diff for: .github/workflows/node.js.yml

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

55
on:
6-
push:
7-
branches: [ "main" ]
86
pull_request:
9-
branches: [ "main" ]
7+
push:
8+
branches-ignore: "dependabot/**"
109

1110
jobs:
1211
build:
@@ -18,14 +17,14 @@ jobs:
1817
node-version: [18.x, 20.x]
1918

2019
steps:
21-
- name: Checkout
22-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
23-
- name: Install xmllint
24-
run: sudo apt-get install -y libxml2-utils
25-
- name: Use Node.js ${{ matrix.node-version }}
26-
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
27-
with:
28-
node-version: ${{ matrix.node-version }}
29-
cache: 'npm'
30-
- run: npm ci
31-
- run: npm test
20+
- name: Checkout
21+
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
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@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
26+
with:
27+
node-version: ${{ matrix.node-version }}
28+
cache: 'npm'
29+
- run: npm ci
30+
- run: npm test

0 commit comments

Comments
 (0)